This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ProgBlog/app/base/DBModel.js

15 lines
271 B
JavaScript
Raw Normal View History

2016-03-09 14:33:45 -05:00
'use strict';
const container = require('../Container');
const Model = container.getBase('Model');
2016-06-14 10:51:48 -04:00
const Config = container.getBase('Config');
2016-03-09 14:33:45 -05:00
class DBModel extends Model {
2016-06-14 10:51:48 -04:00
constructor() {
super();
2016-03-09 14:33:45 -05:00
2016-06-14 10:51:48 -04:00
this.db = Config.get('database');
}
2016-03-09 14:33:45 -05:00
}
module.exports = DBModel;