diff --git a/src/datomish/db.cljc b/src/datomish/db.cljc index d7e5ede7..37d630fc 100644 --- a/src/datomish/db.cljc +++ b/src/datomish/db.cljc @@ -327,16 +327,27 @@ {:error :transact/syntax, :tx-data entity}) ))))) +(defn TxReport - {:current-tx current-tx - :tx-data [] - :tempids {} - :tx-meta tx-meta}) tx-data)))))) + (s/in-transaction! + (:sqlite-connection db) + #(go-pair + (let [current-tx (TxReport + {:current-tx current-tx + :tx-data [] + :tempids {} + :tx-meta tx-meta}) tx-data))] + (