To perform transactions use the dirac.tx api. Dirac defaults to
using client pooling per request. So a single client must be used
over the lifespan of a transaction. The tx will fetch one for you
and release it upon .commit()
.
A dirac tx object has access to the same DALs in addition to transactional commands.
Creates a new tx
object
Issues BEGIN
Issues ROLLBACK
Issues COMMIT
and releases the client. Subsequent calls on tx
will throw an error.