0.0.1 • Published 9 years ago

normaljs v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

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() {
        // ...
      }
    }
  );
};