Skip to content

Releases: nene/prettier-plugin-sql-cst

0.12.2

01 Jan 21:59
Compare
Choose a tag to compare

Small BigQuery parsing fix

  • Support parsing and formatting BigQuery GROUP BY ALL clause (#41)

0.12.1

27 Dec 09:20
Compare
Choose a tag to compare

Improved PostgreSQL support

  • Support GRANT/REVOKE
  • Support CREATE/ALTER/DROP ROLE
  • Support ALTER/DROP TRIGGER
  • Support additional PostgreSQL-specific transactions syntax

Other

  • Upgraded parser to 0.31.1

0.12.0

18 Nov 09:54
Compare
Choose a tag to compare

New feature

  • New option sqlAcceptUnsupportedGrammar. This will help dealing with unsupported SQL. Primarily intended for allowing one to use the plugin with SQL dialects that aren't 100% supported yet.

0.11.8

16 Nov 20:06
Compare
Choose a tag to compare

Improved PostgreSQL support

  • Formatting of CREATE/ALTER/DROP DOMAIN
  • Formatting of CREATE/ALTER/DROP TYPE

Other

  • Upgraded parser to 0.29.1

0.11.7

29 Aug 06:40
Compare
Choose a tag to compare

Small bugfix

  • Preserve parenthesis around SELECT inside function arguments #28 (thanks to @bparnell-4tel)

0.11.6

05 Aug 07:23
Compare
Choose a tag to compare

Upgrade sql-parser-cst to 0.28.1

0.11.5

27 Mar 07:24
Compare
Choose a tag to compare

Improved PostgreSQL support

  • Formatting of ALTER FUNCTION/PROCEDURE
  • Formatting of CREATE TRIGGER

Fixes

  • Various parsing fixes and improvements from sql-parser-cst 0.28.0

0.11.4

13 Feb 19:56
Compare
Choose a tag to compare

Update parser to 0.27.1

  • Bringing in support for $nr parameter types.

0.11.3

09 Feb 09:30
Compare
Choose a tag to compare

Support for latest BigQuery syntax

Upgraded the parser to support latest (as of 31. Jan 2024) BigQuery syntax.
Notably this includes:

  • support for PRIMARY KEY and FOREIGN KEY
  • OPTIONS() in view columns
  • GROUP BY with CUBE(), ROLLUP(), GROUPING SETS

Improved PostgreSQL support

  • CREATE/DROP/ALTER INDEX and REINDEX are now supported

0.11.2

03 Feb 14:26
Compare
Choose a tag to compare

Improved PostgreSQL support

  • Formatting of CREATE TABLE
  • Formatting of CREATE FOREIGN TABLE
  • Formatting of ALTER TABLE
  • Formatting of CREATE/ALTER/DROP SEQUENCE
  • Formatting of CREATE/ALTER/DROP VIEW
  • Formatting of CREATE/ALTER/DROP MATERIALIZED VIEW
  • Formatting of REFRESH MATERIALIZED VIEW
  • Formatting of CREATE/ALTER/DROP SCHEMA