pub struct VecStmt { /* private fields */ }Expand description
A prepared statement on a VecConnection.
Provides methods for binding parameters, stepping, and reading results via raw SQLite FFI.
Implementations§
Source§impl VecStmt
impl VecStmt
Sourcepub fn bind_int64(&self, idx: i32, val: i64)
pub fn bind_int64(&self, idx: i32, val: i64)
Bind an integer at 1-based position idx.
Sourcepub fn step(&self) -> Result<bool, String>
pub fn step(&self) -> Result<bool, String>
Step the statement. Returns true if a row is available
(SQLITE_ROW), false on SQLITE_DONE. Other codes return an error.
Sourcepub fn column_int64(&self, idx: i32) -> i64
pub fn column_int64(&self, idx: i32) -> i64
Read a 64-bit integer from column idx (0-based).
Sourcepub fn column_double(&self, idx: i32) -> f64
pub fn column_double(&self, idx: i32) -> f64
Read a double from column idx (0-based).
Sourcepub fn column_text(&self, idx: i32) -> Option<String>
pub fn column_text(&self, idx: i32) -> Option<String>
Read a text string from column idx (0-based).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VecStmt
impl RefUnwindSafe for VecStmt
impl !Send for VecStmt
impl !Sync for VecStmt
impl Unpin for VecStmt
impl UnsafeUnpin for VecStmt
impl UnwindSafe for VecStmt
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request