Closed gphil closed 12 years ago
Would this work?
(select (table :dummy) "price/sqft > 2") SELECT dummy.* FROM dummy WHERE price/sqft > 2
The reedming fact that lead me to allow raw strings to be passed is that its very simply for you to write domain specific helpers.
Yep, works perfectly. That's what I was looking for, thank you.
I am trying to create the query:
using ClojureQL.
This query:
yields:
because "/" is used for aggregate functions.
And when trying to use a string instead of a keyword:
The resulting query swaps out the string with a bind variable:
SELECT apartments.* FROM apartments WHERE ($1 > $2)
So it seems this is not possible?