Expand description
Provides safe wrappers around Postgres’ “Transaction” and “Sub Transaction” hook system
Structs
- Registering a sub-transaction event callback returns a
XactCallbackReceipt
that can be used to unregister the callback if it later (within the confines of the current transaction) becomes unnecessary - Registering a transaction event callback returns a
XactCallbackReceipt
that can be used to unregister the callback if it later (within the confines of the current transaction) becomes unnecessary
Enums
- Postgres Transaction (Xact) Callback Events
Functions
- Register a closure to be called during one of the
PgXactCallbackEvent
events. Multiple closures can be registered per event (one at a time), and they are called in the order in which they were registered.