Skip to main content

Module transaction

Module transaction 

Source
Expand description

Transactional trait implementation for DatabaseHandler.

Provides DieselTransaction, a scoped connection wrapper that issues BEGIN on construction and ROLLBACK on drop unless explicitly committed.

Structsยง

DieselTransaction
A scoped database transaction. Holds a pooled connection with an active BEGIN. Commits explicitly via .commit(), rolls back on drop otherwise.