Skip to content

Commit

Permalink
Update references from Builder to QueryBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Jan 25, 2018
1 parent 4cbe41f commit e122c08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -31,7 +31,7 @@ Compare these two examples:
q = queryExecute("SELECT * FROM users");
// qb
query = wirebox.getInstance('Builder@qb');
query = wirebox.getInstance('QueryBuilder@qb');
q = query.from('users').get();
```

Expand All @@ -45,7 +45,7 @@ q = queryExecute(
);
// qb
query = wirebox.getInstance('Builder@qb');
query = wirebox.getInstance('QueryBuilder@qb');
q = query.from('posts')
.whereNotNull('published_at')
.whereIn('author_id', [5, 10, 27])
Expand All @@ -55,7 +55,7 @@ q = query.from('posts')
With qb you can easily handle setting order by statements before the columns you want or join statements after a where clause:

```cfc
query = wirebox.getInstance('Builder@qb');
query = wirebox.getInstance('QueryBuilder@qb');
q = query.from('posts')
.orderBy('published_at')
.select('post_id', 'author_id', 'title', 'body')
Expand All @@ -78,7 +78,7 @@ https://gist.github.com/elpete/80d641b98025f16059f6476561d88202

## Usage

To start a new query, instantiate a new Builder: `wirebox.getInstance('Builder@qb')`.
To start a new query, instantiate a new Builder: `wirebox.getInstance('QueryBuilder@qb')`.

By default, qb uses a generic Grammar. You can specify your specific grammar in ColdBox by setting the `defaultGrammar` in your `moduleSettings`.

Expand Down

0 comments on commit e122c08

Please sign in to comment.