Module pgrx::callbacks

source ·
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§

Functions§

  • Register a closure to be called during one of the PgrxactCallbackEvent events. Multiple closures can be registered per event (one at a time), and they are called in the order in which they were registered.