pub struct TransactionOptions {
pub isolation_level: IsolationLevel,
pub read_only: bool,
pub deferrable: bool,
}Expand description
Options for transaction behavior.
Fields§
§isolation_level: IsolationLevel§read_only: bool§deferrable: boolImplementations§
Source§impl TransactionOptions
impl TransactionOptions
pub fn new() -> Self
pub fn with_isolation(self, level: IsolationLevel) -> Self
pub fn read_only(self) -> Self
pub fn deferrable(self) -> Self
Sourcepub fn begin_statement(&self) -> String
pub fn begin_statement(&self) -> String
Generate the BEGIN statement for these options.
Trait Implementations§
Source§impl Clone for TransactionOptions
impl Clone for TransactionOptions
Source§fn clone(&self) -> TransactionOptions
fn clone(&self) -> TransactionOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionOptions
impl Debug for TransactionOptions
Source§impl Default for TransactionOptions
impl Default for TransactionOptions
Source§fn default() -> TransactionOptions
fn default() -> TransactionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze 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