pub struct Statement<DB>{ /* private fields */ }
Expand description
Asynchronous wrapper type for crate::driver::Statement
Implementations§
Source§impl<DB> Statement<DB>
impl<DB> Statement<DB>
pub fn new( db: Option<DB>, conn: Option<Box<dyn Connection>>, stmt: Box<dyn Statement>, ) -> Self
pub async fn num_input(&self) -> Result<Option<usize>>
pub async fn execute(&mut self, args: Vec<Argument>) -> Result<ExecResult>
pub async fn query(&mut self, args: Vec<Argument>) -> Result<Rows<DB>>
Trait Implementations§
Auto Trait Implementations§
impl<DB> Freeze for Statement<DB>
impl<DB> RefUnwindSafe for Statement<DB>
impl<DB> Send for Statement<DB>
impl<DB> Sync for Statement<DB>
impl<DB> Unpin for Statement<DB>
impl<DB> UnwindSafe for Statement<DB>
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