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, V, QId, Op, O, const STATIC_QUERY_ID: bool> Debug for DebugQuery<'a, InsertStatement<T, BatchInsert<Vec<ValuesClause<V, T>>, T, QId, STATIC_QUERY_ID>, Op>, Sqlite>where
T: QuerySource,
V: ContainsDefaultableValue<Out = O>,
Self: DebugQueryHelper<O>,
Available on crate feature sqlite
only.
impl<'a, T, V, QId, Op, O, const STATIC_QUERY_ID: bool> Debug for DebugQuery<'a, InsertStatement<T, BatchInsert<Vec<ValuesClause<V, T>>, T, QId, STATIC_QUERY_ID>, Op>, Sqlite>where
T: QuerySource,
V: ContainsDefaultableValue<Out = O>,
Self: DebugQueryHelper<O>,
Available on crate feature
sqlite
only.source§impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>
impl<'a, T, DB> Debug for DebugQuery<'a, T, DB>
source§impl<'a, T, V, QId, Op, O, const STATIC_QUERY_ID: bool> Display for DebugQuery<'a, InsertStatement<T, BatchInsert<Vec<ValuesClause<V, T>>, T, QId, STATIC_QUERY_ID>, Op>, Sqlite>where
T: QuerySource,
V: ContainsDefaultableValue<Out = O>,
Self: DebugQueryHelper<O>,
Available on crate feature sqlite
only.
impl<'a, T, V, QId, Op, O, const STATIC_QUERY_ID: bool> Display for DebugQuery<'a, InsertStatement<T, BatchInsert<Vec<ValuesClause<V, T>>, T, QId, STATIC_QUERY_ID>, Op>, Sqlite>where
T: QuerySource,
V: ContainsDefaultableValue<Out = O>,
Self: DebugQueryHelper<O>,
Available on crate feature
sqlite
only.source§impl<'a, T, DB> Display for DebugQuery<'a, T, DB>
impl<'a, T, DB> Display for DebugQuery<'a, T, DB>
Auto Trait Implementations§
impl<'a, T, DB> Freeze for DebugQuery<'a, T, DB>
impl<'a, T, DB> RefUnwindSafe for DebugQuery<'a, T, DB>where
T: RefUnwindSafe,
DB: RefUnwindSafe,
impl<'a, T, DB> Send for DebugQuery<'a, T, DB>
impl<'a, T, DB> Sync for DebugQuery<'a, T, DB>
impl<'a, T, DB> Unpin for DebugQuery<'a, T, DB>where
DB: Unpin,
impl<'a, T, DB> UnwindSafe for DebugQuery<'a, T, DB>where
T: RefUnwindSafe,
DB: UnwindSafe,
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