Initialize the database connection, connects models to Sequelize and syncs them
- Since
- 2.2.0
- Copyright
- MIT
- Source
Example
const {Runtime, db} = require('@neobeach/core');
const User = require('./models/User');
Runtime(async () => {
// Include your own code here
await db.init([User]);
});