[][src]Module pgx::callbacks

Provides safe wrappers around Postgres' "Transaction" and "Sub Transaction" hook system

Structs

SubXactCallbackReceipt

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

XactCallbackReceipt

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

PgSubXactCallbackEvent
PgXactCallbackEvent

Postgres Transaction (Xact) Callback Events

Functions

register_subxact_callback
register_xact_callback

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.