You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmmmm. You must admit "it just works" is kind of cool aswell. The point is to avoid all the configuration knex requires. What do you think about SQL.setDialect('mysql')? Example:
letSQL=require('sql-template-strings')// will work in hybrid modeletSQL=require('sql-template-strings').setDialect('mysql')// sets dialect to mysql and returns this
Knex does it like this:
I could see having a .PG and .MySQL object, and sharing code where possible, or having a constructor like knex with a dialect option.
The text was updated successfully, but these errors were encountered: