diff --git a/README.md b/README.md index 5649013..f6dca10 100644 --- a/README.md +++ b/README.md @@ -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(); ``` @@ -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]) @@ -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') @@ -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`.