Struct xitca_postgres::statement::Statement
source · pub struct Statement { /* private fields */ }
Implementations§
source§impl Statement
impl Statement
pub fn unnamed<'a, C>( cli: &'a C, stmt: &'a str, types: &'a [Type], ) -> StatementUnnamed<'a, C>
sourcepub fn columns(&self) -> &[Column]
pub fn columns(&self) -> &[Column]
Returns information about the columns returned when the statement is queried.
sourcepub fn into_guarded<C>(self, cli: &C) -> StatementGuarded<'_, C>where
C: Prepare,
pub fn into_guarded<C>(self, cli: &C) -> StatementGuarded<'_, C>where
C: Prepare,
Convert self to a drop guarded statement which would cancel on drop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)