You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To my knowledge it is currently not possible to make use of the options parameter of the encapsulatedhugsql.core/def-db-fns function (docs) when using conman.core/bind-connection to set connection specific configurations.
I propose the use of an options map for bind-connection, similar showcased and helpful in #19, which is then handed to def-db-fns.
In my case I need to enable :quoting (:mysql) for HugSQL functions per default. Currently this is solved by always providing the database and options map for each call of a generated HugSQL function (example in first snippet), which is far from ideal (second snippet), since connection aware functions are one key feature of conman.
(db/get-user *db* {:id"foo"} {:quoting:mysql})
(db/get-user {:id"foo"})
The text was updated successfully, but these errors were encountered:
To my knowledge it is currently not possible to make use of the
options
parameter of the encapsulatedhugsql.core/def-db-fns
function (docs) when usingconman.core/bind-connection
to set connection specific configurations.I propose the use of an options map for
bind-connection
, similar showcased and helpful in #19, which is then handed todef-db-fns
.In my case I need to enable
:quoting
(:mysql
) for HugSQL functions per default. Currently this is solved by always providing the database and options map for each call of a generated HugSQL function (example in first snippet), which is far from ideal (second snippet), since connection aware functions are one key feature of conman.The text was updated successfully, but these errors were encountered: