diff --git a/src/datomish/db.cljc b/src/datomish/db.cljc index 6d4dc3c4..714a160e 100644 --- a/src/datomish/db.cljc +++ b/src/datomish/db.cljc @@ -67,6 +67,12 @@ [db] "TODO: document this interface.") + (in-transaction! + [db chan-fn] + "Evaluate the given pair-chan `chan-fn` in an exclusive transaction. If it returns non-nil, + commit the transaction; otherwise, rollback the transaction. Returns a pair-chan resolving to + the pair-chan returned by `chan-fn`.") + (