Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/clojureql/test/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@
(select (where (= :admin true)))
(aggregate [:count/*] [:name [:country :as :user_country]]))
(str "SELECT users.name,users.country AS user_country,count(*) FROM users "
"WHERE (users.admin = true) GROUP BY users.name,users.country")))
"WHERE (users.admin = true) GROUP BY users.name,users.country")
(-> (table :users)
(aggregate [] [:birthday]))
(str "SELECT users.* FROM users GROUP BY users.birthday")))

(testing "join with aggregate"
(let [photo-counts-by-user (-> (table :photos)
Expand Down