Fork me on GitHub
#babashka
<
2023-09-15
>
Saket03:09:15

How can I generate UUID v1 in babashka? Trying to use clj-uuid throws an error about primitive-math dependency.

borkdude08:09:35

ah yes, this is because primitive math relies on a Java class which is not in bb:

Unable to resolve classname: primitive_math.Primitives

borkdude09:09:31

$ bb /tmp/uuidv1.clj
#uuid "98217366-018a-1000-b164-f4689455adbf"

Saket12:09:55

Thanks a lot, Michiel

hoynk16:09:25

Is it possible to use as-unqualified-kebab-maps with the org.babashka/postgresql pod? Aparently I should have to import next.jdbc.result-set...

borkdude16:09:25

probably it's easier to transform the result yourself using camel-snake-kebab afterwards

hoynk16:09:54

You do have a point.