datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
amarjeet 2019-02-28T17:26:09.001300Z

Hi, does datascript’s transaction (`transact!`) have the same semantics as that of a database transaction ? Will it behave like Datomic’s single transactor that serializes every request?

2019-02-28T18:05:05.001600Z

yes

2019-02-28T18:07:12.003500Z

datascript is an immutable datastructure inside an atom, transact! use swap! to atomically swap the atoms value from one immutable datastructure to another

amarjeet 2019-02-28T19:08:35.003800Z

thanks @hiredman, makes sense.