Skip to content

dmitrig01/CoffeeRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

ActiveRecord in CoffeeScript. Under very heavy development.

Examples:

require('CoffeeRecord')({ db: 'sqlite', file: 'test.sqlite' }, __dirname + '/models', function(models) {
    models.Post.find(1, function(post) {
        post.comments.all(function(comments) {
            // Do something here with these...
        });
    });
});

models/Post.coffee

class Post extends Model
    @has_many 'comment'

About

A CoffeeScript implementation of ActiveRecord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published