Fork me on GitHub
#luminus
<
2016-12-30
>
igorradisic00:12:24

Hey everyone.

igorradisic00:12:43

I need some help performing sql queries using luminus. Does anybody know how this is done? Trying to execute examples from the docs produces errors.

igorradisic00:12:25

I am using the HugSQL from the docs. For example how do I use the get-user function?

frank00:12:19

do you have a public repo up?

frank01:12:58

you should have access to it through tmse.db.core/get-user

frank02:12:52

you can call get-user like this: (tmse.db.core/get-user {:id "some-uuid"})

frank02:12:59

the hugsql functions are being injected into the tmse.db.core namespace as new vars

frank02:12:14

so you won't see them in your code, but you'll be able to refer to the vars