realglobe-Inc / clay-driver-sequelize

Clay driver for Sequelize
Apache License 2.0
1 stars 1 forks source link
claydb oss

clay-driver-sequelize

Build Status npm Version JS Standard

Clay driver for Sequelize

Installation

$ npm install clay-driver-sequelize --save

Usage

'use strict'

const { SequelizeDriver } = require('clay-driver-sequelize')

{
  const clayLump = require('clay-lump')
  let lump01 = clayLump({
    driver: new SequelizeDriver('my-app', 'user01', 'xxxxxx', {
      dialect: 'mysql'
    })
  })
  /* ... */
}

API

clay-driver-sequelize@6.6.18

Clay driver for Sequelize

Functions

create(args) -> SequelizeDriver

Create driver instance

Param Type Description
args *

SequelizeDriver Class

Abstract driver

Extends:

new SequelizeDriver(database, username, password, options)

Constructor of SequelizeDriver class

Param Type Description
database string Name of database
username string Database username
password string Database password
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links