No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
lib
test
.gitignore
Makefile
README.md
example.js
package.json

README.md

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...