transaction(options = {})
Instance Public methods
Runs the given block in a database transaction, and returns the result of
the block.
Nested transactions support
Most databases don't support true nested transactions. At the time of
writing, the only database that supports true nested transactions that
we're aware of, is MS-SQL.
In order to get around this problem, transaction will
emulate the effect of nested transactions, by using savepoints: dev.mysql.com/doc/refman/5.0/en/savep