pub enum PoolerRefusal {
Autocommit,
SessionState,
}Expand description
Why a transaction pooler refuses a guest statement.
Variants§
Autocommit
It cannot run in a transaction, so its SET and RESET would land
on other server connections; such DDL belongs in deploy-time
migrations.
SessionState
It sets session state, which would outlive the transaction on a
server connection other clients share. set_config(…, false) and
DO blocks cannot be recognised this way.
Implementations§
Trait Implementations§
Source§impl Clone for PoolerRefusal
impl Clone for PoolerRefusal
impl Copy for PoolerRefusal
Source§impl Debug for PoolerRefusal
impl Debug for PoolerRefusal
impl Eq for PoolerRefusal
Source§impl PartialEq for PoolerRefusal
impl PartialEq for PoolerRefusal
impl StructuralPartialEq for PoolerRefusal
Auto Trait Implementations§
impl Forget for PoolerRefusal
impl Freeze for PoolerRefusal
impl RefUnwindSafe for PoolerRefusal
impl Send for PoolerRefusal
impl Sync for PoolerRefusal
impl Unpin for PoolerRefusal
impl UnsafeUnpin for PoolerRefusal
impl UnwindSafe for PoolerRefusal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more