summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-12 10:28:12 +1100
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-12 10:28:12 +1100
commitd4e7fd255ef26ffd24e356b369a6442eadeb6f33 (patch)
treeffbf9a5097ed1bd9fec374fca9ae766f7254be61
parent3ea93238b71eb1af0bdfcbab4559c9a6734944e7 (diff)
Fix up the README which I formatted wrong. Whoops!
-rw-r--r--README.md28
1 files changed, 14 insertions, 14 deletions
diff --git a/README.md b/README.md
index 4eed172..60e24aa 100644
--- a/README.md
+++ b/README.md
@@ -218,20 +218,20 @@ be the return value of the associated query function call (`deref`,
values (this is not, and cannot really be, enforced, but we try to
warn you if you're obviously wrong).
- :::clojure
- (-> (q/table :users)
- (q/project [:age :name])
- (q/group [:age] {'(string_agg :name ",") :names}))
- ;=> ["SELECT \"users1785\".\"age\" AS \"age\", (\"string_agg\"(\"users1785\".\"name\",?)) AS \"names\"
- FROM \"users\" AS \"users1785\"
- GROUP BY \"users1785\".\"age\""
- ","]
-
- (-> (q/table :users)
- (q/project [:age :name])
- (q/group [:age] {:name :name}))
- ;=> Exception! Expr is not a function application - could not
- possible be an aggregate
+ :::clojure
+ (-> (q/table :users)
+ (q/project [:age :name])
+ (q/group [:age] {'(string_agg :name ",") :names}))
+ ;=> ["SELECT \"users1785\".\"age\" AS \"age\", (\"string_agg\"(\"users1785\".\"name\",?)) AS \"names\"
+ FROM \"users\" AS \"users1785\"
+ GROUP BY \"users1785\".\"age\""
+ ","]
+
+ (-> (q/table :users)
+ (q/project [:age :name])
+ (q/group [:age] {:name :name}))
+ ;=> Exception! Expr is not a function application - could not
+ possible be an aggregate
* **Breaking:** Remove `having`, use `select` instead now