pub struct D1Statement { /* private fields */ }Expand description
A “prepared” D1 statement: the SQL and nothing else.
D1 has no server-side prepare that reports parameters or columns, so there
is nothing to learn by preparing ahead of time. This exists because sqlx’s
Executor::prepare has to return something.
Trait Implementations§
Source§impl Clone for D1Statement
impl Clone for D1Statement
Source§impl ColumnIndex<D1Statement> for usize
impl ColumnIndex<D1Statement> for usize
Source§fn index(&self, statement: &D1Statement) -> Result<usize, Error>
fn index(&self, statement: &D1Statement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Source§impl Debug for D1Statement
impl Debug for D1Statement
Source§impl Statement for D1Statement
impl Statement for D1Statement
type Database = D1
Source§fn parameters(&self) -> Option<Either<&[D1TypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[D1TypeInfo], usize>>
Get the expected parameters for this statement. Read more
Source§fn columns(&self) -> &[D1Column]
fn columns(&self) -> &[D1Column]
Get the columns expected to be returned by executing this statement.
fn query(&self) -> Query<'_, Self::Database, D1Arguments>
fn query_with<A>(&self, arguments: A) -> Query<'_, Self::Database, A>where
A: IntoArguments<Self::Database>,
fn query_as<O>( &self, ) -> QueryAs<'_, Self::Database, O, <Self::Database as Database>::Arguments>
fn query_as_with<'s, O, A>( &'s self, arguments: A, ) -> QueryAs<'s, Self::Database, O, A>
fn query_scalar<O>( &self, ) -> QueryScalar<'_, Self::Database, O, <Self::Database as Database>::Arguments>
fn query_scalar_with<'s, O, A>( &'s self, arguments: A, ) -> QueryScalar<'s, Self::Database, O, A>
Source§fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index. Read moreSource§fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
Gets the column information at
index or a ColumnIndexOutOfBounds error if out of bounds.Auto Trait Implementations§
impl Freeze for D1Statement
impl RefUnwindSafe for D1Statement
impl Send for D1Statement
impl Sync for D1Statement
impl Unpin for D1Statement
impl UnsafeUnpin for D1Statement
impl UnwindSafe for D1Statement
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§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 more