Skip to content

Commit

Permalink
Merge branch 'master' of github.com:1602/jugglingdb
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Feb 1, 2012
2 parents 9434ff4 + 4a94b6f commit 84881a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Post.create(cb);
// all posts
Post.all(cb)
// all posts by user
Post.all({where: {userId: user.id}});
Post.all({where: {userId: user.id}, order: 'id', limit: 10, skip: 20});
// the same as prev
user.posts(cb)
// same as new Post({userId: user.id});
Expand All @@ -80,7 +80,7 @@ user.posts.create(cb)
// find instance by id
User.find(1, cb)
// count instances
User.count(cb)
User.count([conditions, ]cb)
// destroy instance
user.destroy(cb);
// destroy all instances
Expand Down

0 comments on commit 84881a0

Please sign in to comment.