mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-28 16:10:05 +08:00
6faeab4b0b
Added orm module to abstract Sequelize usage to some degree. ORM module handles the configuration and instantiation of Sequelize. Models are defined and instantiated from models/* Tested only against SQLite. Faily new to nodejs so I probably messed up with something.
8 lines
169 B
JavaScript
8 lines
169 B
JavaScript
var Sequelize = require('sequelize');
|
|
|
|
module.exports = {
|
|
configure: function(db) {
|
|
return new Sequelize(db.name, db.user, db.password, db.options);
|
|
}
|
|
}
|