new Sequelize('featherstutorial', 'databaseUser', 'databasePassword' code example
Example 1: new Sequelize('featherstutorial', 'databaseUser', 'databasePassword'
var sequelize = new Sequelize('database', 'username', 'password', {
host: "my.server.tld",
port: 12345
})
Example 2: sequelize sqlite example
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'sqlite',
storage: 'path/to/database.sqlite'
dialectOptions: {
}
});
Example 3: new Sequelize('featherstutorial', 'databaseUser', 'databasePassword'
var sequelize = new Sequelize('mysql://user:[email protected]:9821/dbname', {
})
Example 4: new Sequelize('featherstutorial', 'databaseUser', 'databasePassword'
var sequelize = new Sequelize('database', 'username'[, 'password'])