pub struct QueryPlan {
pub sql: String,
pub params: IndexMap<String, ParamSpec>,
pub result_type: Option<&'static str>,
pub prebound_count: usize,
pub dynamic_bind_count: usize,
pub total_bind_count: usize,
/* private fields */
}Expand description
Dialect-specific SQL and parameter metadata produced from a typed query AST.
Fields§
§sql: StringSQL rendered for the selected dialect.
params: IndexMap<String, ParamSpec>Named var(...) and generated val(...) parameters in encounter order.
result_type: Option<&'static str>Rust type name expected by a row-scanning terminal, when known.
prebound_count: usizeNumber of row payload values already bound before dynamic query params.
dynamic_bind_count: usizeNumber of var(...) and val(...) placeholders bound after row values.
total_bind_count: usizeTotal number of placeholders in the rendered statement.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryPlan
impl !UnwindSafe for QueryPlan
impl Freeze for QueryPlan
impl Send for QueryPlan
impl Sync for QueryPlan
impl Unpin for QueryPlan
impl UnsafeUnpin for QueryPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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