tonsky/datascript — pull request #7 by thegeez (2014-04-28 13:22:26+00:00)
Title: Add transaction functions

Database functions/transaction functions.

No need to install functions in database of course. [:db.fn/call f args] will be called in the transaction with the current value of db as the first argument to f. Throwing an Error in f will abort the transaction. See test for an example.