node.js sequelize sqlite code example
Example 1: sequelize sqlite example
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'sqlite',
storage: 'path/to/database.sqlite' // or ':memory:'
dialectOptions: {
// Your sqlite3 options here
}
});
Example 2: orm for postgres node js
$ npm install sequelize
$ npm install mysql