brianc / node-sql

SQL generation for node.js
MIT License
1.05k stars 191 forks source link

remove quotemarks: PostgreSQL case sensitivity (& msSQL compatability) #392

Open Justus-Maier opened 6 years ago

Justus-Maier commented 6 years ago

The legacy database im using exists in postgres and mssql variants, the postgre db has everything lowercased, while the tables in the mssql db have also some capital letters.

Obviously I want to select one dialect and have it just work. I'd like to keep using camel case, but since everything in the postgre db is lowercase, I have to use those names (moduleid, modulename), because querying without quotemarks is not possible?

Please help me to solve this properly, creating an abstraction over those sql dialects!