loopback/lib/connectors/memory.js

46 lines
886 B
JavaScript
Raw Normal View History

// Copyright IBM Corp. 2013,2018. All Rights Reserved.
2016-05-03 22:50:21 +00:00
// Node module: loopback
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
2013-06-11 16:01:44 +00:00
/**
* Expose `Memory`.
*/
'use strict';
2013-06-11 16:01:44 +00:00
module.exports = Memory;
/**
* Module dependencies.
*/
2014-10-16 22:54:40 +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;