https://github.com/imqueue/sequelize
Sequelize ORM refines for @imqueue ecosystem
https://github.com/imqueue/sequelize
imqueue-orm imqueue-sequelize sequelize
Last synced: 9 months ago
JSON representation
Sequelize ORM refines for @imqueue ecosystem
- Host: GitHub
- URL: https://github.com/imqueue/sequelize
- Owner: imqueue
- License: isc
- Created: 2019-10-21T08:53:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T08:29:58.000Z (about 1 year ago)
- Last Synced: 2024-10-31T08:43:31.547Z (about 1 year ago)
- Topics: imqueue-orm, imqueue-sequelize, sequelize
- Language: TypeScript
- Size: 21.7 MB
- Stars: 16
- Watchers: 6
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @imqueue/sequelize
[](https://travis-ci.org/imqueue/sequelize)
[](https://david-dm.org/imqueue/sequelize)
[](https://david-dm.org/imqueue/sequelize?type=dev)
[](https://snyk.io/test/github/imqueue/sequelize?targetFile=package.json)
[](https://rawgit.com/imqueue/sequelize/master/LICENSE)
Sequelize ORM refines for @imqueue
# Install
~~~bash
npm i --save @imqueue/sequelize
~~~
# Docs
~~~bash
git clone git@github.com:imqueue/sequelize.git
cd sequelize
npm i
npm run doc
~~~
# Usage
~~~typescript
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,
},
},
});
~~~