Fork me on GitHub
#babashka
<
2022-11-04
>
jose11:11:28

I see that babashka invokes java to download dependencies, are there other cases where babashka invokes java? According to the docs, looks like this is the only case

borkdude11:11:39

That's the only case

👍 1
fvides13:11:45

I'm thinking on using HugSql in babaska. I've included the dependencies and required it, but when execute def-db-fn it complaints that I should set the adaptor. Tried next.jdbc adaptor but fails when I require it. I'm using babasha postgres pod for db connection. Should I use another adaptor? Can this be done? Thanks in advance

borkdude14:11:31

@UM4CBJVLZ bb doesn't support making queries to a database via hugsql directly as it needs the database drivers which aren't included in bb. but hugsql.core + sqlvec functions do work (which just require parsing text files), so you can construct the query and then hand the query off to bb sql pods

borkdude14:11:33

another alternative is to use honeysql which also works with bb

fvides15:11:50

In this case HugSql is a better option. Using the sqlvec functions is a great solution, many thanks!