pub struct SQLitePrepared { /* private fields */ }Expand description
Prepared statement wrapper for SQLite.
Manages the native statement pointer and binding index, and implements the Prepared trait to bind parameters from tank_core::Value.
Implementations§
Source§impl SQLitePrepared
impl SQLitePrepared
pub fn last_error(&self) -> String
Trait Implementations§
Source§impl Debug for SQLitePrepared
impl Debug for SQLitePrepared
Source§impl Display for SQLitePrepared
impl Display for SQLitePrepared
Source§impl Prepared for SQLitePrepared
impl Prepared for SQLitePrepared
fn as_any(self: Box<Self>) -> Box<dyn Any>
Source§fn clear_bindings(&mut self) -> Result<&mut Self>
fn clear_bindings(&mut self) -> Result<&mut Self>
Clear all bound values.
Source§fn bind_index(&mut self, v: impl AsValue, index: u64) -> Result<&mut Self>
fn bind_index(&mut self, v: impl AsValue, index: u64) -> Result<&mut Self>
Bind a value at a specific index.
Source§fn metadata(&self) -> &QueryMetadata
fn metadata(&self) -> &QueryMetadata
Get QueryMetadata
Source§fn metadata_mut(&mut self) -> &mut QueryMetadata
fn metadata_mut(&mut self) -> &mut QueryMetadata
Get mutable QueryMetadata
Auto Trait Implementations§
impl Freeze for SQLitePrepared
impl RefUnwindSafe for SQLitePrepared
impl Send for SQLitePrepared
impl Sync for SQLitePrepared
impl Unpin for SQLitePrepared
impl UnwindSafe for SQLitePrepared
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