Sequelize Model loader
This module instanciates a memory database by using Sequelize ORM All other modules in this folder will considered as models
- Source:
Methods
(static) loadModels() → {Promise.<Object>}
Model loader Retrieve, require and instanciate all models from current folder
Parameters:
| Type | Description |
|---|---|
| Object | Current context |
- Source:
Returns:
Model loader with all loaded models
- Type
- Promise.<Object>
(static) retrieveModels() → {Promise.<Array.<String>>}
Retrieve all models in the current folder (*.js only)
- Source:
Returns:
All models in the current folder
- Type
- Promise.<Array.<String>>