24 lines
649 B
JavaScript
24 lines
649 B
JavaScript
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
exports.ADL = require('./lib/adl').Schema;
|
|
exports.DataSource = require('./lib/datasource').DataSource;
|
|
exports.Schema = exports.DataSource; // require('./lib/schema').Schema;
|
|
exports.ModelBaseClass = require('./lib/model.js');
|
|
|
|
var baseSQL = './lib/sql';
|
|
|
|
exports.__defineGetter__('BaseSQL', function () {
|
|
return require(baseSQL);
|
|
});
|
|
|
|
|
|
exports.__defineGetter__('version', function () {
|
|
return JSON.parse(fs.readFileSync(__dirname + '/package.json')).version;
|
|
});
|
|
|
|
var commonTest = './test/common_test';
|
|
exports.__defineGetter__('test', function () {
|
|
return require(commonTest);
|
|
});
|