Adding example of what I'm trying to achieve in the README

This commit is contained in:
Andrii V. Mishkovskyi 2015-04-16 20:21:21 +02:00
parent 1ff93eb964
commit 76303c2ffe

View file

@ -249,7 +249,7 @@ Here's a big, complicated query. Note that Honey SQL makes no attempt to verify
[:between :f.e 10 20]] [:between :f.e 10 20]]
:group-by [:f.a] :group-by [:f.a]
:having [:< 0 :f.e] :having [:< 0 :f.e]
:order-by [[:b.baz :desc] :c.quux] :order-by [[:b.baz :desc] :c.quux [:f.a :nulls-first]
:limit 50 :limit 50
:offset 10} :offset 10}
@ -265,7 +265,7 @@ Here's a big, complicated query. Note that Honey SQL makes no attempt to verify
OR f.e BETWEEN 10 AND 20) OR f.e BETWEEN 10 AND 20)
GROUP BY f.a GROUP BY f.a
HAVING 0 < f.e HAVING 0 < f.e
ORDER BY b.baz DESC, c.quux ORDER BY b.baz DESC, c.quux, f.a NULLS FIRST
LIMIT 50 LIMIT 50
OFFSET 10 " OFFSET 10 "
"bort" "gabba" 2] "bort" "gabba" 2]