{"library":"prettier-plugin-bq","title":"Prettier Plugin for BigQuery SQL","description":"A prettier plugin for formatting GoogleSQL (BigQuery dialect) files. Supports pipe syntax, procedural language (BigQuery Scripting), and experimental Jinja template handling. v1.0.5 is current with a moderate release cadence. Requires prettier ^3.2.4 as a peer dependency. Ship TypeScript types. Differentiator vs other SQL formatters: specifically targets GoogleSQL, not generic or MySQL/PostgreSQL dialects. Active development, community-driven.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-bq"],"cli":{"name":"prettier","version":null}},"imports":["import {} from 'prettier-plugin-bq' // no export, plugin auto-detected","import prettier from 'prettier'","import * as prettier from 'prettier'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev prettier prettier-plugin-bq\necho \"SELECT\n    name,\n    SUM(salary) AS total_salary\nFROM\n    employees\nWHERE\n    department = 'Engineering'\nGROUP BY\n    name\nHAVING\n    total_salary > 100000\nORDER BY\n    total_salary DESC;\" > query.sql\nnpx prettier --write query.sql --plugin=prettier-plugin-bq","lang":"javascript","description":"Install prettier and the plugin, create a SQL file, format it using the CLI with --plugin flag.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}