hugsql

swizzard 2017-04-20T12:47:11.788316Z

i don’t know that much about (hug)sql, and i’m wondering about how best to divide things between sql and clojure functions

swizzard 2017-04-20T12:58:59.930138Z

more specifically, i have maps like {:token "the" :song "a song" :artist "an artist", :album "an album"}, and i need to upsert many-to-manys

swizzard 2017-04-20T13:00:15.947055Z

so i need to insert a row in artists_albums with the pks of the artist and album, inserting into artists and albums if necessary