PostgreSQL
PostgreSQL
For PostgreSQL, two libraries are needed, pg@^7.0.0 and pg-hstore. You‘ll just need to define the dialect:
const sequelize = new Sequelize('database', 'username', 'password', {
// gimme postgres, please!
dialect: 'postgres'
})
To connect over a unix domain socket, specify the path to the socket directoryin the host option.
The socket path must start with /.
const sequelize = new Sequelize('database', 'username', 'password', {
// gimme postgres, please!
dialect: 'postgres',
host: '/path/to/socket_directory'
})
