Merge pull request #143 from rnewman/patch-1

Update README example to match #142.
This commit is contained in:
Michael Blume 2016-11-07 14:13:10 -08:00 committed by GitHub
commit d07a1a3764

View file

@ -179,7 +179,7 @@ Queries may be united within a :union or :union-all keyword:
```clj
(sql/format {:union [(-> (select :*) (from :foo))
(-> (select :*) (from :bar))]})
=> ["(SELECT * FROM foo) UNION (SELECT * FROM bar)"]
=> ["SELECT * FROM foo UNION SELECT * FROM bar"]
```
Keywords that begin with `%` are interpreted as SQL function calls: