mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
feat: add DuckDB dialect (#878)
* feat: add DuckDB dialect * formatting * fix conflict * support // in GenericDialect * add DucDbDialect to all_dialects * add comment from suggestion Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * fix: support // in GenericDialect --------- Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
3be19c7666
commit
33b12acce7
9 changed files with 140 additions and 10 deletions
|
@ -46,6 +46,7 @@ $ cargo run --feature json_example --example cli FILENAME.sql [--dialectname]
|
|||
"--hive" => Box::new(HiveDialect {}),
|
||||
"--redshift" => Box::new(RedshiftSqlDialect {}),
|
||||
"--clickhouse" => Box::new(ClickHouseDialect {}),
|
||||
"--duckdb" => Box::new(DuckDbDialect {}),
|
||||
"--generic" | "" => Box::new(GenericDialect {}),
|
||||
s => panic!("Unexpected parameter: {s}"),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue