loopback-datasource-juggler/index.js

24 lines
649 B
JavaScript
Raw Normal View History

2012-01-26 09:36:14 +00:00
var fs = require('fs');
2012-03-27 14:22:24 +00:00
var path = require('path');
2012-01-26 09:36:14 +00:00
2013-05-17 17:54:14 +00:00
exports.ADL = require('./lib/adl').Schema;
exports.DataSource = require('./lib/datasource').DataSource;
2013-05-17 21:41:04 +00:00
exports.Schema = exports.DataSource; // require('./lib/schema').Schema;
2013-05-17 17:54:14 +00:00
exports.ModelBaseClass = require('./lib/model.js');
2013-01-22 16:27:49 +00:00
var baseSQL = './lib/sql';
exports.__defineGetter__('BaseSQL', function () {
return require(baseSQL);
});
2012-01-10 13:26:24 +00:00
2012-03-27 14:22:24 +00:00
2013-02-22 20:29:18 +00:00
exports.__defineGetter__('version', function () {
return JSON.parse(fs.readFileSync(__dirname + '/package.json')).version;
});
2013-01-22 16:27:49 +00:00
var commonTest = './test/common_test';
exports.__defineGetter__('test', function () {
return require(commonTest);
});