mas_storage_pg

Trait ExecuteExt

Source
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§

Source

fn record(self, span: &Span) -> Self

Records the statement as db.query.text in the given span

Provided Methods§

Source

fn traced(self) -> Self

Records the statement as db.query.text in the current span

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.

Implementors§

Source§

impl<'q, DB, T> ExecuteExt<'q, DB> for T
where T: Execute<'q, DB>, DB: Database,