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>
impl<T, DB> DebugQuery for DebugQuery<'_, 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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.