Merge pull request #24 from cloojure/patch-1

Provide improved example of using a keyword to specify a SQL function
This commit is contained in:
Howard M. Lewis Ship 2014-10-07 14:42:22 -07:00
commit 12190fe322

View file

@ -93,7 +93,9 @@ Keywords that begin with `%` are interpreted as SQL function calls:
```clj ```clj
(-> (select :%count.*) (from :foo) sql/format) (-> (select :%count.*) (from :foo) sql/format)
=> ["SELECT COUNT(*) FROM foo"] => ["SELECT count(*) FROM foo"]
(-> (select :%max.id) (from :foo) sql/format)
=> ["SELECT max(id) FROM foo"]
``` ```
Keywords that begin with `?` are interpreted as bindable parameters: Keywords that begin with `?` are interpreted as bindable parameters: