Trait mas_storage_pg::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

Object Safety§

This trait is not object safe.

Implementors§

source§

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