Struct persy::TransactionConfig
source · pub struct TransactionConfig { /* private fields */ }
Expand description
Configure the parameters for the transaction on the begin of a new transaction.
Implementations§
source§impl TransactionConfig
impl TransactionConfig
sourcepub fn set_strategy(self, strategy: TxStrategy) -> Self
pub fn set_strategy(self, strategy: TxStrategy) -> Self
Set the transaction concurrency checks, experimental use carefully
sourcepub fn set_transaction_id(self, transaction_id: TransactionId) -> Self
pub fn set_transaction_id(self, transaction_id: TransactionId) -> Self
Set the transaction id to be used in case of crash recovery.
The id must be maximum 512 bytes of length
Trait Implementations§
source§impl Clone for TransactionConfig
impl Clone for TransactionConfig
source§fn clone(&self) -> TransactionConfig
fn clone(&self) -> TransactionConfig
Returns a copy 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 Default for TransactionConfig
impl Default for TransactionConfig
source§fn default() -> TransactionConfig
fn default() -> TransactionConfig
Returns the “default value” for a type. Read more