Datastore implementation for mysql, postgres, sqlite3, and mssql
npm install screwdriver-datastore-sequelize
This module takes the same input as the sequelize class with the exception of database
, username
, and password
. Those should be combined into the overall config object.
const Sequelize = require('screwdriver-datastore-sequelize');
const datastore = new Sequelize();
const Sequelize = require('screwdriver-datastore-sequelize');
const pcGamerDatastore = new Sequelize({
dialect: 'postgres',
database: 'banana',
username: 'coconut',
password: 'm0nK3Ys&'
});
See base class for more information.
npm test
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.