- with-transaction DATABASE THUNK #!optional TYPEprocedure
Runs THUNK within the scope of a transaction on the database and returns the return value from THUNK.
The transaction is committed upon exit from THUNK if THUNK returns a true value. If THUNK returns a false value or throws an exception, the transaction is rolled back.
The TYPE" of the transaction can be specified as one of the symbols deferred (the default), immediate or exclusive.