pub struct TransactionConfigurationBuilder { /* private fields */ }
Expand description
Builder for transaction configuration
Implementations§
source§impl TransactionConfigurationBuilder
impl TransactionConfigurationBuilder
pub fn init() -> Self
sourcepub fn no_wait(&mut self) -> &mut Self
pub fn no_wait(&mut self) -> &mut Self
Disable the wait mode on lock resolution.
In the NO WAIT mode, a transaction will immediately throw a database exception if a conflict occurs
sourcepub fn wait(&mut self, until: u32) -> &mut Self
pub fn wait(&mut self, until: u32) -> &mut Self
Enable wait mode with a specific time on lock resolution.
In the WAIT model, transaction will wait till the other transaction has finished.
Waiting will continue only for the number of seconds specified
sourcepub fn wait_infinitely(&mut self) -> &mut Self
pub fn wait_infinitely(&mut self) -> &mut Self
Enable wait forever on lock resolution
In the WAIT model, transaction will wait till the other transaction has finished.
sourcepub fn read_only(&mut self) -> &mut Self
pub fn read_only(&mut self) -> &mut Self
Enable read only data access
Only SELECT operations can be executed in the context of this transaction
sourcepub fn read_write(&mut self) -> &mut Self
pub fn read_write(&mut self) -> &mut Self
Enable read write data access
Operations in the context of this transaction can be both read operations and data update operations
sourcepub fn with_consistency(&mut self) -> &mut Self
pub fn with_consistency(&mut self) -> &mut Self
Enable consistency(table lock) isolation level
sourcepub fn with_concurrency(&mut self) -> &mut Self
pub fn with_concurrency(&mut self) -> &mut Self
Enable concurrency isolation level
Transactions can’t see alterations commited after they started
sourcepub fn with_read_commited(&mut self, rec: TrRecordVersion) -> &mut Self
pub fn with_read_commited(&mut self, rec: TrRecordVersion) -> &mut Self
Enable read commited isolation level
Transactions can see alterations commited after they started