Skip to content

desa/foie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foie

Duck-type-like ORM for javascript.

You write regular javascript objects, and foie them.

var require('foie');

function User() {

  ...

};

foie(User);

We attach methods for saving the object.

var mike = new User();

mike.save();
foie.js

##Ideas

  • models/model_nameModel.js file defines template for stored object, specifies what attributes and methods that must be implemented inorder to be saved.
  • no migrations, instead of having a migration, each time an object is foie'ed we diff the object with the version that was last foied and create migration appropriately.

About

Duck-type-like ORM for javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published