Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Poole committed Jul 19, 2013
1 parent 8943028 commit 041fd1c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -596,15 +596,12 @@ clauses - where, orderBy, etc. Trying to chain a method that returns results
__Arguments__ __Arguments__


* clauseName - The name of the clause to be attached to the model * clauseName - The name of the clause to be attached to the model
* clauses - The object describing the clauses. Follows a name: arguments * clauses - The function that describes the clause composition using a query.
structure.


__Example__ __Example__
```javascript ```javascript
Person.defineClause('clauseName', { Person.defineClause('clauseName', function(query) {
where: 'id > 5', return query.where('id < 5').orderBy('id').limit(5);
orderBy: 'id',
limit: 5,
}); });


Person.clauseName().all(connection, function(err, people) { Person.clauseName().all(connection, function(err, people) {
Expand Down

0 comments on commit 041fd1c

Please sign in to comment.