1.1.0 • Published 5 years ago
@loezy/seekul v1.1.0
@Loezy/ Seekul
Loezy stands for it's clean and lazy packaging, don't write the same 6 lines over and over.
Seekul
Simple definer of sequelize models.
Usage
Currently we only support MySQL.
const { define } = require('@loezy/seekul').mysql(dbname, user, password, options);
Options
See https://sequelize.org/v5/manual/dialects.html for dialect adapter options.
{
host: 'localhost',
dialect: 'mysql',
...
}
Define
This method allows you to register and get back models.
const User = define(require('./models/User'));