tconbeer / sqlfmt

sqlfmt formats your dbt SQL files so you don't have to
https://sqlfmt.com
Apache License 2.0
405 stars 17 forks source link

DDL Support: Tracking Issue #262

Open tconbeer opened 2 years ago

tconbeer commented 2 years ago

sqlfmt was made for dbt, and originally only formatted select statements. Additional syntax is being added all the time. The list below represents the current functionality of sqlfmt @main. To request prioritization of additional commands/statements, leave a comment below or open an issue.

Commands marked below with (no handling) are simple enough to be lexed/formatted with sqlfmt's core engine.

Relevant releases (see the Changelog for more info):


The full list of PostgreSQL SQL Commands:

Snowflake adds DML:

Snowflake adds DDL

BigQuery is covered by keywords above.

Redshift adds:

Spark adds:

MySQL

DuckDB

Materialize adds:

dehume commented 1 year ago

Materialize adds: