Is there any that I can pass string to :from and get the same output as when I pass keywords?
Example:
This call gives me the result that I want
(sql/format {:from
[:foo :bar]
:select
:*})
; ["SELECT * FROM foo, bar"]
This call keeps the quotes
(sql/format {:from
["foo" "bar"]
:select
:*}))
; ["SELECT * FROM ?, ?" "foo" "bar"]
Is there anything I can do to make the second call return the same query as the first call?Not without altering the sqlmap. And I'd just convert those strings to keywords.
Not exactly certain, but maybe you can also override the built-in :from formatter. Maybe. But that's definitely icky.
That is what I figured. Just had my fingers crossed.
Thanks!