πŸ“‚ Use Sequelize in Bloggify applications.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
CONTRIBUTING.md
DOCUMENTATION.md
LICENSE
README.md
package.json

README.md

bloggify-sequelize

Version Downloads

Use Sequelize in Bloggify applications.

☁️ Installation

$ npm i --save bloggify-sequelize

πŸ“ Documentation

bloggify:init

Params

  • Object config:
    • uri (String): The database uri (if this is used, the other config fields will be ignored).
    • db_name (String): The database name
    • username (Object): The database username.
    • password (Object): The database password.
    • options (Object): The database options.
    • models_dir (String): The relative path to a directory containing models stored in files.

The model objects can be accessed by requiring the module or accessing the Bloggify.models object.

After the module is initialized, the db field is appended to the Sequelize module, being the Sequelize instance. You can access the Sequelize instance using:

const seq = require("sequelize").db

πŸ˜‹ How to contribute

Have an idea? Found a bug? See how to contribute.

πŸ’« Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • bloggify (by Bloggify)β€”We make publishing easy.

πŸ“œ License

MIT Β© Bloggify