rockdai / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
210 stars 25 forks source link

sql-bricks reserved words should come from spec & should be easy to override #116

Open prust opened 4 years ago

prust commented 4 years ago

Currently the reserved words in sql-bricks is a union of those from SQLite and from Postgres. Instead, they should be derived from the spec and should be overridden in the vendor-specific extensions.

Also, it seems like it would be nice if the reserved words were easy to override and if the auto-quote-if-they-have-caps rule was easy to enable/disable. Or we should just expose the autoQuote function, so it can be overridden (currently it looks like we expose the autoQuote function, but we don't use that reference, so users are not able to actually override it).