Commits this transaction, so the changes are recorded to the current database state.
Transacted variant of DormDB.insert. Can insert a single value or multiple values at once.
This function executes a raw SQL statement.
Returns a builder struct that can be used to perform a DELETE statement in the SQL database on the provided Model table.
Deletes the given model instance from the database inside the transaction.
Rolls back this transaction, so the DB changes are reverted to before the transaction was started.
Returns a builder struct that can be used to perform an update statement in the SQL database on the provided Model table.
Wrapper around a Database transaction. Most methods that can be used on a DormDB can also be used on a transaction.
Performs a rollback when going out of scope and wasn't committed or rolled back explicitly.