pub struct TransactionBuilder<'a> { /* fields omitted */ }
A builder for database transactions.
impl<'a>TransactionBuilder<'a>
[src]pub fnisolation_level(self, isolation_level:IsolationLevel) -> Self
[src]Sets the isolation level of the transaction.
pub fnread_only(self, read_only:bool) -> Self
[src]Sets the access mode of the transaction.
pub fndeferrable(self, deferrable:bool) -> Self
[src]Sets the deferrability of the transaction.
If the transaction is also serializable and read only, creation of the transaction may block, but when itcompletes the transaction is able to run with less overhead and a guarantee that it will not be aborted due toserialization failure.
pub fnstart(self) ->Result<Transaction<'a>,Error>
[src]Begins the transaction.
The transaction will roll back by default - use thecommit
method to commit it.
impl<'a> !RefUnwindSafe forTransactionBuilder<'a>
impl<'a>Send forTransactionBuilder<'a>
impl<'a>Sync forTransactionBuilder<'a>
impl<'a>Unpin forTransactionBuilder<'a>
impl<'a> !UnwindSafe forTransactionBuilder<'a>
impl<T>Any for Twhere
T: 'static + ?Sized,
[src]impl<T>Borrow<T> for Twhere
T: ?Sized,
[src]impl<T>BorrowMut<T> for Twhere
T: ?Sized,
[src]fnborrow_mut(&mut self) ->&mutT
[src]impl<T>From<T> for T
[src]impl<T, U>Into<U> for Twhere
U:From<T>,
[src]impl<T> Same<T> for T
typeOutput = T
Should always beSelf
impl<T, U>TryFrom<U> for Twhere
U:Into<T>,
[src]typeError =Infallible
The type returned in the event of a conversion error.
fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>
[src]impl<T, U>TryInto<U> for Twhere
U:TryFrom<T>,
[src]typeError = <U asTryFrom<T>>::Error
The type returned in the event of a conversion error.
fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>
[src]impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fnvzip(self) -> V