i don’t know that much about (hug)sql, and i’m wondering about how best to divide things between sql and clojure functions
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
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