Mysql driver for ClayDB
$ npm install clay-driver-mysql --save
'use strict'
const { MysqlDriver } = require('clay-driver-mysql')
{
const clayLump = require('clay-lump')
let lump01 = clayLump({
driver: new MysqlDriver('my-app', 'user01', 'xxxxxx', {})
})
/* ... */
}
Mysql driver for ClayDB
Create driver instance
Param | Type | Description |
---|---|---|
args | * |
Driver to save data into sqlite
Extends:
SequelizeDriver
Constructor of MysqlDriver class
Param | Type | Description |
---|---|---|
database | string | Name of database |
username | string | Database username |
password | string | Database password |
options | Object | Optional settings |
options.logging | boolean,function | Logging option |
options.benchmark | boolean | Show benchmark |
This software is released under the Apache-2.0 License.