[−][src]Struct rsfbclient::Transaction
Implementations
impl<'c, C: FirebirdClient> Transaction<'c, C>
[src]
pub fn new(conn: &'c mut Connection<C>) -> Result<Self, FbError>
[src]
Start a new transaction
pub fn commit(self) -> Result<(), FbError>
[src]
Commit the current transaction changes
pub fn commit_retaining(&mut self) -> Result<(), FbError>
[src]
Commit the current transaction changes, but allowing to reuse the transaction
pub fn rollback_retaining(&mut self) -> Result<(), FbError>
[src]
Rollback the current transaction changes, but allowing to reuse the transaction
pub fn rollback(self) -> Result<(), FbError>
[src]
Rollback the current transaction changes
pub fn execute_immediate(&mut self, sql: &str) -> Result<(), FbError>
[src]
Execute the statement without returning any row
pub fn prepare<'t>(
&'t mut self,
sql: &str,
named_params: bool
) -> Result<Statement<'c, 't, C>, FbError>
[src]
&'t mut self,
sql: &str,
named_params: bool
) -> Result<Statement<'c, 't, C>, FbError>
Prepare a new statement for execute
Trait Implementations
impl<'c, C: FirebirdClient> Drop for Transaction<'c, C>
[src]
impl<C: FirebirdClient, '_> Execute for Transaction<'_, C>
[src]
pub fn execute<P>(&mut self, sql: &str, params: P) -> Result<(), FbError> where
P: IntoParams,
[src]
P: IntoParams,
pub fn execute_returnable<P, R>(
&mut self,
sql: &str,
params: P
) -> Result<R, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&mut self,
sql: &str,
params: P
) -> Result<R, FbError> where
P: IntoParams,
R: FromRow + 'static,
impl<'c> From<Transaction<'c, NativeFbClient<DynLink>>> for SimpleTransaction<'c>
[src]
pub fn from(tr: Transaction<'c, NativeFbClient<DynLink>>) -> Self
[src]
impl<'c> From<Transaction<'c, NativeFbClient<DynLoad>>> for SimpleTransaction<'c>
[src]
pub fn from(tr: Transaction<'c, NativeFbClient<DynLoad>>) -> Self
[src]
impl<'c> From<Transaction<'c, RustFbClient>> for SimpleTransaction<'c>
[src]
pub fn from(tr: Transaction<'c, RustFbClient>) -> Self
[src]
impl<'c, C: FirebirdClient> Queryable for Transaction<'c, C>
[src]
pub fn query_iter<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Box<dyn Iterator<Item = Result<R, FbError>> + 'a>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Box<dyn Iterator<Item = Result<R, FbError>> + 'a>, FbError> where
P: IntoParams,
R: FromRow + 'static,
pub fn query<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Vec<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Vec<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
pub fn query_first<'a, P, R>(
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
[src]
&'a mut self,
sql: &str,
params: P
) -> Result<Option<R>, FbError> where
P: IntoParams,
R: FromRow + 'static,
impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, NativeFbClient<DynLink>>
[src]
type Error = FbError
The type returned in the event of a conversion error.
pub fn try_from(tr: SimpleTransaction<'c>) -> Result<Self, FbError>
[src]
impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, NativeFbClient<DynLoad>>
[src]
type Error = FbError
The type returned in the event of a conversion error.
pub fn try_from(tr: SimpleTransaction<'c>) -> Result<Self, FbError>
[src]
impl<'c> TryFrom<SimpleTransaction<'c>> for Transaction<'c, RustFbClient>
[src]
Auto Trait Implementations
impl<'c, C> RefUnwindSafe for Transaction<'c, C> where
C: RefUnwindSafe,
<C as FirebirdClientDbOps>::DbHandle: RefUnwindSafe,
<C as FirebirdClientSqlOps>::StmtHandle: RefUnwindSafe,
<C as FirebirdClientSqlOps>::TrHandle: RefUnwindSafe,
[src]
C: RefUnwindSafe,
<C as FirebirdClientDbOps>::DbHandle: RefUnwindSafe,
<C as FirebirdClientSqlOps>::StmtHandle: RefUnwindSafe,
<C as FirebirdClientSqlOps>::TrHandle: RefUnwindSafe,
impl<'c, C> Send for Transaction<'c, C> where
<C as FirebirdClientDbOps>::DbHandle: Send,
<C as FirebirdClientSqlOps>::StmtHandle: Send,
<C as FirebirdClientSqlOps>::TrHandle: Send,
[src]
<C as FirebirdClientDbOps>::DbHandle: Send,
<C as FirebirdClientSqlOps>::StmtHandle: Send,
<C as FirebirdClientSqlOps>::TrHandle: Send,
impl<'c, C> Sync for Transaction<'c, C> where
C: Sync,
<C as FirebirdClientDbOps>::DbHandle: Sync,
<C as FirebirdClientSqlOps>::StmtHandle: Sync,
<C as FirebirdClientSqlOps>::TrHandle: Sync,
[src]
C: Sync,
<C as FirebirdClientDbOps>::DbHandle: Sync,
<C as FirebirdClientSqlOps>::StmtHandle: Sync,
<C as FirebirdClientSqlOps>::TrHandle: Sync,
impl<'c, C> Unpin for Transaction<'c, C> where
<C as FirebirdClientSqlOps>::TrHandle: Unpin,
[src]
<C as FirebirdClientSqlOps>::TrHandle: Unpin,
impl<'c, C> !UnwindSafe for Transaction<'c, C>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,