normaljs

0.0.1 • Public • Published

normal

Node Object Relational Mapper (Abstraction Layer) ?

Build Status Coverage Status

var lib = require('./index');
var client = require('...sql');
var db = new client({ ... });
var session = lib.create(db);
 
// including models definitions :
require('./model/users')(session);
 
// sample of a model
module.exports = function(session) {
  return session.declare(
    'users', 
    {
      __construct: function() {
        // ...
      }
    }
  );
};

/normaljs/

    Package Sidebar

    Install

    npm i normaljs

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • ichiriac