Skip to content

Commit 7477b8a

Browse files
committed
Document duckdb support
1 parent e0763e1 commit 7477b8a

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
It started as a port of a [PHP Library][], but has since considerably diverged.
88

99
It supports various SQL dialects:
10-
GCP BigQuery, IBM DB2, 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, 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).
1111
See [language option docs](docs/language.md) for more details.
1212

1313
It does not support:

docs/dialect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The following dialects can be imported from `"sql-formatter"` module:
2424
- `bigquery` - [GCP BigQuery][]
2525
- `db2` - [IBM DB2][]
2626
- `db2i` - [IBM DB2i][] (experimental)
27+
- `duckdb` - [DuckDB][]
2728
- `hive` - [Apache Hive][]
2829
- `mariadb` - [MariaDB][]
2930
- `mysql` - [MySQL][]
@@ -73,6 +74,7 @@ You likely only want to use this if your other alternative is to fork SQL Format
7374
[gcp bigquery]: https://cloud.google.com/bigquery
7475
[ibm db2]: https://www.ibm.com/analytics/us/en/technology/db2/
7576
[ibm db2i]: https://www.ibm.com/docs/en/i/7.5?topic=overview-db2-i
77+
[duckdb]: https://duckdb.org/
7678
[apache hive]: https://hive.apache.org/
7779
[mariadb]: https://mariadb.com/
7880
[mysql]: https://www.mysql.com/

docs/language.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const result = format('SELECT * FROM tbl', { language: 'sqlite' });
1616
- `"bigquery"` - [GCP BigQuery][]
1717
- `"db2"` - [IBM DB2][]
1818
- `"db2i"` - [IBM DB2i][] (experimental)
19+
- `"duckdb"` - [DuckDB][]
1920
- `"hive"` - [Apache Hive][]
2021
- `"mariadb"` - [MariaDB][]
2122
- `"mysql"` - [MySQL][]
@@ -50,6 +51,7 @@ See docs for [dialect][] option.
5051
[gcp bigquery]: https://cloud.google.com/bigquery
5152
[ibm db2]: https://www.ibm.com/analytics/us/en/technology/db2/
5253
[ibm db2i]: https://www.ibm.com/docs/en/i/7.5?topic=overview-db2-i
54+
[duckdb]: https://duckdb.org/
5355
[apache hive]: https://hive.apache.org/
5456
[mariadb]: https://mariadb.com/
5557
[mysql]: https://www.mysql.com/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"trino",
4040
"presto",
4141
"prestosql",
42-
"snowflake"
42+
"snowflake",
43+
"duckdb"
4344
],
4445
"files": [
4546
"dist",

0 commit comments

Comments
 (0)