loopback-datasource-juggler/index.js

21 lines
692 B
JavaScript

exports.ModelBuilder = exports.LDL = require('./lib/model-builder.js').ModelBuilder;
exports.DataSource = exports.Schema = require('./lib/datasource.js').DataSource;
exports.ModelBaseClass = require('./lib/model.js');
exports.GeoPoint = require('./lib/geo.js').GeoPoint;
exports.ValidationError = require('./lib/validations.js').ValidationError;
var dataSources = exports.dataSources = {};
exports.registerDataSource = function(ds) {
dataSources[ds.name] = ds;
};
exports.__defineGetter__('version', function () {
return require('./package.json').version;
});
var commonTest = './test/common_test';
exports.__defineGetter__('test', function () {
return require(commonTest);
});