pub trait ExecuteExt<'q, DB>: Sized {
// Required method
fn record(self, span: &Span) -> Self;
// Provided method
fn traced(self) -> Self { ... }
}
Expand description
An extension trait for sqlx::Execute
that records the SQL statement as
db.query.text
in a tracing span
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.