Struct rsfbclient::SimpleTransaction [−][src]
A transaction API without client types
Implementations
impl<'c> SimpleTransaction<'c>
[src]
pub fn new(conn: &'c mut SimpleConnection) -> 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
Trait Implementations
impl<'c> Execute for SimpleTransaction<'c>
[src]
fn execute<P>(&mut self, sql: &str, params: P) -> Result<(), FbError> where
P: IntoParams,
[src]
P: IntoParams,
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]
fn from(tr: Transaction<'c, NativeFbClient<DynLink>>) -> Self
[src]
impl<'c> From<Transaction<'c, NativeFbClient<DynLoad>>> for SimpleTransaction<'c>
[src]
fn from(tr: Transaction<'c, NativeFbClient<DynLoad>>) -> Self
[src]
impl<'c> From<Transaction<'c, RustFbClient>> for SimpleTransaction<'c>
[src]
fn from(tr: Transaction<'c, RustFbClient>) -> Self
[src]
impl<'c> Queryable for SimpleTransaction<'c>
[src]
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,
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,
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.
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.
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> !RefUnwindSafe for SimpleTransaction<'c>
impl<'c> Send for SimpleTransaction<'c>
impl<'c> !Sync for SimpleTransaction<'c>
impl<'c> Unpin for SimpleTransaction<'c>
impl<'c> !UnwindSafe for SimpleTransaction<'c>
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>,