Fork me on GitHub
#sql
<
2018-08-27
>
souenzzo15:08:51

there is how to create 2 entity and link then using JDBC in a single transaction?

seancorfield16:08:32

(j/with-db-transaction [t-conn db-spec]
  (let [entity-1 (j/insert! t-conn ...)
        entity-2 (j/insert! t-conn ...)]
    ... link entities ...))
Like that @souenzzo?

👍 4
seancorfield16:08:27

(for whatever you mean by "link them")