Set name and settings
This commit is contained in:
parent
ee426b63fc
commit
04bda5c138
|
@ -5,8 +5,10 @@ module.exports = Connector;
|
|||
* methods for connectors than a super class
|
||||
* @constructor
|
||||
*/
|
||||
function Connector() {
|
||||
function Connector(name, settings) {
|
||||
this._models = {};
|
||||
this.name = name;
|
||||
this.settings = settings || {};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,13 +21,13 @@ function Memory(m) {
|
|||
this.isTransaction = true;
|
||||
this.cache = m.cache;
|
||||
this.ids = m.ids;
|
||||
this.constructor.super_.apply(this, [].slice.call(arguments));
|
||||
this.constructor.super_.call(this, 'memory');
|
||||
this._models = m._models;
|
||||
} else {
|
||||
this.isTransaction = false;
|
||||
this.cache = {};
|
||||
this.ids = {};
|
||||
this.constructor.super_.apply(this, [].slice.call(arguments));
|
||||
this.constructor.super_.call(this, 'memory');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue