Struct diesel::query_builder::DebugQuery
source · pub struct DebugQuery<'a, T: 'a, DB> { /* private fields */ }
Expand description
A struct that implements fmt::Display
and fmt::Debug
to show the SQL
representation of a query.
The Display
implementation will be the exact query sent to the server,
plus a comment with the values of the bind parameters. The Debug
implementation is more structured, and able to be pretty printed.
See debug_query
for usage examples.
Trait Implementations§
source§impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>where
DB: Backend + Default,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>where
DB: Backend + Default,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
source§impl<'a, T, DB> Display for DebugQuery<'a, T, DB>where
DB: Backend + Default,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
impl<'a, T, DB> Display for DebugQuery<'a, T, DB>where
DB: Backend + Default,
DB::QueryBuilder: Default,
T: QueryFragment<DB>,
Auto Trait Implementations§
impl<'a, T, DB> RefUnwindSafe for DebugQuery<'a, T, DB>where
DB: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, DB> Send for DebugQuery<'a, T, DB>where
DB: Send,
T: Sync,
impl<'a, T, DB> Sync for DebugQuery<'a, T, DB>where
DB: Sync,
T: Sync,
impl<'a, T, DB> Unpin for DebugQuery<'a, T, DB>where
DB: Unpin,
impl<'a, T, DB> UnwindSafe for DebugQuery<'a, T, DB>where
DB: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more