pub struct TransactionOptions {
pub read_only: Option<bool>,
}Expand description
Transaction-mode options gathered from a BEGIN, START TRANSACTION, SET TRANSACTION, or SET SESSION CHARACTERISTICS AS TRANSACTION clause.
Only the fields halephant actually uses are tracked. Isolation level and deferrable flags are parsed implicitly (the parser walks past them without producing errors) but not surfaced, because nothing in the router needs them.
Fields§
§read_only: Option<bool>Some(true) for an explicit READ ONLY, Some(false) for
READ WRITE, None when neither was specified. When both
appear (malformed SQL), the last one wins — matching
PostgreSQL’s own parser behaviour.
Trait Implementations§
Source§impl Clone for TransactionOptions
impl Clone for TransactionOptions
impl Copy for TransactionOptions
Source§impl Debug for TransactionOptions
impl Debug for TransactionOptions
Source§impl Default for TransactionOptions
impl Default for TransactionOptions
impl Eq for TransactionOptions
Source§impl PartialEq for TransactionOptions
impl PartialEq for TransactionOptions
impl StructuralPartialEq for TransactionOptions
Auto Trait Implementations§
impl Forget for TransactionOptions
impl Freeze for TransactionOptions
impl Move for TransactionOptions
impl RefUnwindSafe for TransactionOptions
impl Send for TransactionOptions
impl Sync for TransactionOptions
impl Unpin for TransactionOptions
impl UnsafeUnpin for TransactionOptions
impl UnwindSafe for TransactionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.