Skip to content

screwdriver-cd/datastore-sequelize

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Datastore Sequelize

Version Downloads Build Status Open Issues License

Datastore implementation for mysql, postgres, sqlite3, and mssql

Usage

npm install screwdriver-datastore-sequelize

Initialization

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();

Define a specific region and credentials to interact with

const Sequelize = require('screwdriver-datastore-sequelize');
const pcGamerDatastore = new Sequelize({
    dialect: 'postgres',
    database: 'banana',
    username: 'coconut',
    password: 'm0nK3Ys&'
});

Methods

See base class for more information.

Testing

npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.