Module pgx::guard

source · []

Structs

A std::result::Result-type value returned from pg_try() that allows for performing cleanup work after a closure raised an error and before it is possibly rethrown

Functions

Guard a closure such that Rust Panics are properly converted into Postgres ERRORs

Similar to guard, but allows the caller to unwrap the result in various ways, possibly performing cleanup work before the caught error is rethrown