orm_framework

1.0.10 • Public • Published

#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

Readme

Keywords

Package Sidebar

Install

npm i orm_framework

Weekly Downloads

0

Version

1.0.10

License

MIT

Last publish

Collaborators

  • jason.liu