How to install SQL dialect in node-sql?

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

I was looking for documentation, but I will not explain how to set up a dialect for creating SQL statements. Does anyone know how to achieve this?

+3
source share
1 answer
sql.setDialect('pg'); // Sets dialect for Postgres.

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

+1
source

All Articles