You can currently already do this by using the CockroachDB binary (https://www.cockroachlabs.com/docs/releases/v2.1.0-beta.2018...) but understandably people want a more minimal solution.
You can currently already do this by using the CockroachDB binary (https://www.cockroachlabs.com/docs/releases/v2.1.0-beta.2018...) but understandably people want a more minimal solution.
1. It lowercases table and field names, rendering the formatted statement useless for a project with not exclusively lowercased names. Could you please fix this?
2. I'd appreciate accepting common placeholder "?" as a valid part of the SQL statement so that we can format queries with placeholders. Would that be possible?
sqlfmt is not super useful for non-postgres grammars.
Still how about not lowercasing identifiers? This is actually a blocker, I'm sure you see it:)
Any chance of allowing keywords that are specific to a SQL implementation? (e.g. PostgreSQL)
If I enter "CREATE MATERIALIZED VIEW ... WITH DATA;" in for example, it would tell me "materialized" and "with data" is wrong.
But sqlfmt doesn't (currently) have a goal to format all SQL, just cockroach SQL.