77It started as a port of a [ PHP Library] [ ] , but has since considerably diverged.
88
99It supports various SQL dialects:
10- GCP BigQuery, IBM DB2, DuckDB, Apache Hive, MariaDB, MySQL, TiDB, Couchbase N1QL, Oracle PL/SQL, PostgreSQL, Amazon Redshift, SingleStoreDB, Snowflake, Spark, SQL Server Transact-SQL, Trino (and Presto).
10+ GCP BigQuery, Clickhouse, IBM DB2, DuckDB, Apache Hive, MariaDB, MySQL, TiDB, Couchbase N1QL, Oracle PL/SQL, PostgreSQL, Amazon Redshift, SingleStoreDB, Snowflake, Spark, SQL Server Transact-SQL, Trino (and Presto).
1111See [ language option docs] ( docs/language.md ) for more details.
1212
1313It does not support:
@@ -123,7 +123,7 @@ sql-formatter -h
123123
124124```
125125usage: sql-formatter [-h] [-o OUTPUT] \
126- [-l {bigquery,db2,db2i,hive,mariadb,mysql,n1ql,plsql,postgresql,redshift,singlestoredb,snowflake,spark,sql,sqlite,tidb,transactsql,trino,tsql}] [-c CONFIG] [--version] [FILE]
126+ [-l {bigquery,clickhouse, db2,db2i,hive,mariadb,mysql,n1ql,plsql,postgresql,redshift,singlestoredb,snowflake,spark,sql,sqlite,tidb,transactsql,trino,tsql}] [-c CONFIG] [--version] [FILE]
127127
128128SQL Formatter
129129
@@ -135,7 +135,7 @@ optional arguments:
135135 -o, --output OUTPUT
136136 File to write SQL output (defaults to stdout)
137137 --fix Update the file in-place
138- -l, --language {bigquery,db2,db2i,hive,mariadb,mysql,n1ql,plsql,postgresql,redshift,singlestoredb,snowflake,spark,sql,sqlite,tidb,trino,tsql}
138+ -l, --language {bigquery,clickhouse, db2,db2i,hive,mariadb,mysql,n1ql,plsql,postgresql,redshift,singlestoredb,snowflake,spark,sql,sqlite,tidb,trino,tsql}
139139 SQL dialect (defaults to basic sql)
140140 -c, --config CONFIG
141141 Path to config JSON file or json string (will find a file named '.sql-formatter.json' or use default configs if unspecified)
0 commit comments