Skip to content

imqueue/sequelize

Repository files navigation

@imqueue/sequelize

Build Status David David Known Vulnerabilities License

Sequelize ORM refines for @imqueue

Install

npm i --save @imqueue/sequelize

Docs

git clone git@github.com:imqueue/sequelize.git
cd sequelize
npm i
npm run doc

Usage

import { database, query } from '@imqueue/sequelize';

const sequelize = database({
    logger: console,
    modelsPath: './src/orm/models',
    sequelize: {
        benchmark: true,
        dialect: 'postgres',
        storage: 'sequelize',
        pool: {
            max: 250,
            min: 2,
            idle: 30000,
            acquire: 30000,
        },
    },
});