I have been looking at the code here
from what I can tell query does not take :params to pass in parameters ? or else I am not understanding whats going on.
Tried a few things like
(db/query honey-sql-query :search "text")
But this does not work, the doc string says it takes a honey sql form which i Take it is just the hash map form before its passed to sql/format which has a :params keyword to allow you to injected name params into your query.
@camsaul is this possible am i missing something, or would toucan need to be extended to allow for this ?
I have been looking at the code here
toucan/src/toucan/db.clj
Line 284 in e8fbd6d
Tried a few things like
(db/query honey-sql-query :search "text")But this does not work, the doc string says it takes a honey sql form which i Take it is just the hash map form before its passed to sql/format which has a :params keyword to allow you to injected name params into your query.
@camsaul is this possible am i missing something, or would toucan need to be extended to allow for this ?