3

I am trying to include the node-sql module in a node.js project. It generates SQL statements from Javascript for mysql, postgresql and sqllite.

I have searched the documentation, but I does not explain how to set the dialect to generate SQL statements. Does anyone know how to achieve this?

1 Answer 1

1
sql.setDialect('pg'); // Sets dialect for Postgres.

https://github.com/brianc/node-sql/blob/master/test/index-tests.js

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.