sqlfmt
sqlfmt copied to clipboard
Purpose: SQL or CockroachDB-flavored SQL?
This library uses the CockroachDB SQL parser, which effectively limits it to use with just CockroachDB, since CockroachDB lacks significant amounts of SQL support: WITH RECURSIVE, CREATE FUNCTION, and CREATE TYPE. And that's just standard ANSI SQL.
IMO, this should either
-
advertise as CockroachDB SQL formatter
-
fork from the CockroachDB parser so as to allow contributions to support SQL syntax (regardless of CockroachDB support).
I agree, we should do 1 and put a notice somewhere on the website. I'll keep this open until that gets done.