loopback/lib/connectors/memory.js

39 lines
661 B
JavaScript
Raw Normal View History

2013-06-11 16:01:44 +00:00
/**
* Expose `Memory`.
*/
module.exports = Memory;
/**
* Module dependencies.
*/
var Connector = require('./base-connector')
, debug = require('debug')('memory')
, util = require('util')
, inherits = util.inherits
, assert = require('assert')
2013-07-24 18:13:30 +00:00
, JdbMemory = require('loopback-data/lib/connectors/memory');
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
*/
Memory.initialize = JdbMemory.initialize;