1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-12-05 10:42:14 +03:00

storage{,-pg}: better documentation of both crates

This commit is contained in:
Quentin Gliech
2023-01-26 17:58:03 +01:00
parent 0bf1a1998e
commit 6ad8b82a35
7 changed files with 544 additions and 264 deletions

View File

@@ -18,11 +18,13 @@ use tracing::Span;
/// `db.statement` in a tracing span
pub trait ExecuteExt<'q, DB>: Sized {
/// Records the statement as `db.statement` in the current span
#[must_use]
fn traced(self) -> Self {
self.record(&Span::current())
}
/// Records the statement as `db.statement` in the given span
#[must_use]
fn record(self, span: &Span) -> Self;
}