Add SQLx operation tracing (#5223)
* wip: vendor sqlx-tracing * (compiles) standardize pg types used * more standardization * general log message improvements * wip: improve sqlx-tracing architecture * unify sqlx::Executor type * wip: try fix sqlx tracing * wip: sqlx-tracing compiles * so close * it compiles * fix ci
This commit is contained in:
11
packages/sqlx-tracing/src/sqlite.rs
Normal file
11
packages/sqlx-tracing/src/sqlite.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
impl crate::Database for sqlx::Sqlite {
|
||||
const SYSTEM: &'static str = "sqlite";
|
||||
|
||||
type ConnectionRef<'a> = &'a mut sqlx::SqliteConnection;
|
||||
|
||||
fn cast_connection<'c>(
|
||||
conn: &'c mut <Self as sqlx::Database>::Connection,
|
||||
) -> Self::ConnectionRef<'c> {
|
||||
conn
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user