Struct SqliteStatement

Source
pub struct SqliteStatement<'a> { /* private fields */ }

Trait Implementations§

Source§

impl Statement<'_> for SqliteStatement<'_>

Source§

fn add(&mut self) -> &mut Self
where Self: Sized,

Source§

fn bind_index<T>(&mut self, index: u32, value: T) -> &mut Self
where Self: Sized,

Source§

fn bind_name<T>(&mut self, name: &str, value: T) -> &mut Self
where Self: Sized,

Source§

fn bind_null_index(&mut self, index: u32) -> &mut Self
where Self: Sized,

Source§

fn bind_null_name(&mut self, name: &str) -> &mut Self
where Self: Sized,

Source§

fn execute<T: SQLResult>(&self) -> Result<T>
where Self: Sized,

Source§

fn return_generated_values(&mut self, columns: &[&str]) -> &mut Self
where Self: Sized,

Configures Statement to return the generated values from any rows created by this Statement in the SQLResult returned from [execute()]. If no columns are specified, implementations are free to choose which columns will be returned. If called multiple times, only the columns requested in the final invocation will be returned. Read more
Source§

fn fetch_size(&mut self, rows: u32) -> &mut Self
where Self: Sized,

Configures Statement to retrieve a fixed number of rows when fetching results from a query instead deriving fetch size from back pressure. If called multiple times, only the fetch size configured in the final invocation will be applied. If the value specified is zero, then the hint is ignored. The default implementation of this method is a no op and the default value is zero.

Auto Trait Implementations§

§

impl<'a> !Freeze for SqliteStatement<'a>

§

impl<'a> !RefUnwindSafe for SqliteStatement<'a>

§

impl<'a> !Send for SqliteStatement<'a>

§

impl<'a> !Sync for SqliteStatement<'a>

§

impl<'a> Unpin for SqliteStatement<'a>

§

impl<'a> !UnwindSafe for SqliteStatement<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,