@plugcore/ds-sequelize
TypeScript icon, indicating that this package has built-in type declarations

1.4.12 • Public • Published

plugcore.com

@plugcore/ds-sequelize

https://nodei.co/npm/@plugcore/ds-sequelize.png?downloads=false&downloadRank=false&stars=false

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

Readme

Keywords

none

Package Sidebar

Install

npm i @plugcore/ds-sequelize

Weekly Downloads

5

Version

1.4.12

License

ISC

Unpacked Size

14.7 kB

Total Files

10

Last publish

Collaborators

  • plugcorecom