2013-06-11 16:01:44 +00:00
|
|
|
/**
|
|
|
|
* Expose `Memory`.
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = Memory;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Module dependencies.
|
|
|
|
*/
|
2014-10-16 22:54:40 +00:00
|
|
|
|
2014-10-30 20:49:47 +00:00
|
|
|
var Connector = require('./base-connector');
|
|
|
|
var debug = require('debug')('memory');
|
|
|
|
var util = require('util');
|
|
|
|
var inherits = util.inherits;
|
|
|
|
var assert = require('assert');
|
|
|
|
var JdbMemory = require('loopback-datasource-juggler/lib/connectors/memory');
|
2014-10-16 22:54:40 +00:00
|
|
|
|
2013-06-11 16:01:44 +00:00
|
|
|
/**
|
|
|
|
* Create a new `Memory` connector with the given `options`.
|
|
|
|
*
|
|
|
|
* @param {Object} options
|
|
|
|
* @return {Memory}
|
|
|
|
*/
|
|
|
|
|
|
|
|
function Memory() {
|
2013-07-23 19:58:03 +00:00
|
|
|
// TODO implement entire memory connector
|
2013-06-11 16:01:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Inherit from `DBConnector`.
|
|
|
|
*/
|
|
|
|
|
|
|
|
inherits(Memory, Connector);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* JugglingDB Compatibility
|
|
|
|
*/
|
|
|
|
|
2014-04-16 14:33:17 +00:00
|
|
|
Memory.initialize = JdbMemory.initialize;
|