loopback-datasource-juggler/index.js

29 lines
1014 B
JavaScript
Raw Permalink Normal View History

// Copyright IBM Corp. 2011,2019. All Rights Reserved.
2016-04-01 22:25:16 +00:00
// Node module: loopback-datasource-juggler
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
2019-05-08 15:45:37 +00:00
2016-08-22 19:55:22 +00:00
'use strict';
2016-04-01 22:25:16 +00:00
2018-12-07 14:54:29 +00:00
const SG = require('strong-globalize');
2016-07-22 19:26:07 +00:00
SG.SetRootDir(__dirname);
2013-10-02 23:29:33 +00:00
exports.ModelBuilder = exports.LDL = require('./lib/model-builder.js').ModelBuilder;
exports.DataSource = exports.Schema = require('./lib/datasource.js').DataSource;
2013-05-17 17:54:14 +00:00
exports.ModelBaseClass = require('./lib/model.js');
2014-07-28 16:00:05 +00:00
exports.GeoPoint = require('./lib/geo.js').GeoPoint;
exports.ValidationError = require('./lib/validations.js').ValidationError;
2013-01-22 16:27:49 +00:00
Object.defineProperty(exports, 'version', {
2016-04-01 11:48:17 +00:00
get: function() { return require('./package.json').version; },
2013-02-22 20:29:18 +00:00
});
2018-12-07 14:54:29 +00:00
const commonTest = './test/common_test';
Object.defineProperty(exports, 'test', {
2016-04-01 11:48:17 +00:00
get: function() { return require(commonTest); },
2013-01-22 16:27:49 +00:00
});
2015-05-13 16:33:49 +00:00
exports.Transaction = require('loopback-connector').Transaction;
exports.KeyValueAccessObject = require('./lib/kvao');