orm_framework
v1.0.10
Published
nodejs orm mysql framework
Downloads
11
Readme
#orm_framework #please read example how to use ##Install
$npm install --save orm_framework
##Example config
var path = require("path");
var config = {
"database": {
"host": "",
"user": "",
"password": "",
"port": "",
"database": "",
"max": 4,
"min": 2,
"idleTimeoutMillis": 10000,
"protocol": "mysql",
"socketPath": "",
"query": {
"pool": true,
"debug": false
}
},
"modelsPath": "../example/models",
"options": {
"instance.cache": false
}
}
config['modelsPath'] = path.normalize(path.join(__dirname, '../example//models'));
module.exports = config;
##Example init
var OrmInstance = require("orm_framework");
OrmInstance.init(require("../config"));
##License MIT