[−][src]Struct rsfbclient::Statement
Implementations
impl<'c, C> Statement<'c, C> where
C: FirebirdClient,
[src]
C: FirebirdClient,
pub fn prepare(tr: &mut Transaction<'c, C>, sql: &str) -> Result<Self, FbError>
[src]
Prepare the statement that will be executed
pub fn execute<T>(
&mut self,
tr: &mut Transaction<'_, C>,
params: T
) -> Result<(), FbError> where
T: IntoParams,
[src]
&mut self,
tr: &mut Transaction<'_, C>,
params: T
) -> Result<(), FbError> where
T: IntoParams,
Execute the current statement without returnig any row
Use ()
for no parameters or a tuple of parameters
pub fn query<'s, R, P>(
&'s mut self,
tr: &'s mut Transaction<'_, C>,
params: P
) -> Result<StatementFetch<'s, R, C>, FbError> where
R: FromRow,
P: IntoParams,
[src]
&'s mut self,
tr: &'s mut Transaction<'_, C>,
params: P
) -> Result<StatementFetch<'s, R, C>, FbError> where
R: FromRow,
P: IntoParams,
Execute the current statement and returns the lines founds
Use ()
for no parameters or a tuple of parameters
Trait Implementations
Auto Trait Implementations
impl<'c, C> !RefUnwindSafe for Statement<'c, C>
impl<'c, C> !Send for Statement<'c, C>
impl<'c, C> !Sync for Statement<'c, C>
impl<'c, C> Unpin for Statement<'c, C> where
<C as FirebirdClient>::StmtHandle: Unpin,
<C as FirebirdClient>::StmtHandle: Unpin,
impl<'c, C> !UnwindSafe for Statement<'c, 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,
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, 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.
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>,