@plugcore/ds-sequelize
v1.4.9-3
Published
plugcore.com Sequelize datasource
Downloads
266
Readme
@plugcore/ds-sequelize
Documentation can be found at the wiki.
Datasource: sequelize
// TODO
Configuration
Inside our configuration file, for example {PROJECT_ROOT}/configuration/configuration.json
, we will have to add a new
entry for each database we want to connect, like in this example:
You can see more configuration options at Sequelize documentation site
{
"connections": {
"mydb": { // Connection id
"testdb": {
"type": "sequelize",
"database": "main",
"username": "root",
"options": {
"dialect": "sqlite",
"pool": {
"max": 5,
"min": 0,
"idle": 10000
}
}
}
},
...
},
...
}
Usage
// TODO