hugsql

eskemojoe007 2019-08-07T18:17:48.012900Z

Quick question...I see there are lots of ways to convert SQL snake_case to clojure kebab-case for returns of the queries, but is there any way to send kebab case info into the queries? IE (get-user {:user-name "someUser"}) where the query looks like

-- name: get-user :? :1
-- doc: some doc
select * from users
where user_name = :user_name

eskemojoe007 2019-08-07T18:20:52.014Z

But all the solutions I see require a call like (get-user {:user_name "someUser"}) then I can get a return that looks like {:user-name "someUser" :other-param ""}

eskemojoe007 2019-08-07T18:42:37.014600Z

Well...I think I'm a moron. I can just but :user-name in the sql file. Its a bit ugly for syntax highlighting, but it works fine.