0.0.1 • Published 11 years ago

maverick v0.0.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

Maverick

Maverick is an extendible lightweight ORM for javascript and postgres.

Getting Started

var maverick = require('maverick');

var Dog = maverick.createModel('Dog', {
  color: 'string',
  paws: {type: 'smallint', default: 4},
  age: 'smallint'
});

Dog.prototype.speak = function() {
  console.log("burp...");
}

var dog = new Dog({color: 'orange'});

dog.save(function (error) {
	console.log(dog.id);
});

TODO

  • what returns an iterator?
  • inheritance
  • has (n) through
  • singular vs plural table names? The great debate...
0.0.1

11 years ago