(&self, stmt: Statement)
| 171 | #[instrument(level = "trace")] |
| 172 | #[allow(unused_variables)] |
| 173 | async fn query_one(&self, stmt: Statement) -> Result<Option<QueryResult>, DbErr> { |
| 174 | match self { |
| 175 | #[cfg(feature = "sqlx-mysql")] |
| 176 | DatabaseConnection::SqlxMySqlPoolConnection(conn) => conn.query_one(stmt).await, |
| 177 | #[cfg(feature = "sqlx-postgres")] |
| 178 | DatabaseConnection::SqlxPostgresPoolConnection(conn) => conn.query_one(stmt).await, |
| 179 | #[cfg(feature = "sqlx-sqlite")] |
| 180 | DatabaseConnection::SqlxSqlitePoolConnection(conn) => conn.query_one(stmt).await, |
| 181 | #[cfg(feature = "mock")] |
| 182 | DatabaseConnection::MockDatabaseConnection(conn) => conn.query_one(stmt), |
| 183 | #[cfg(feature = "proxy")] |
| 184 | DatabaseConnection::ProxyDatabaseConnection(conn) => conn.query_one(stmt).await, |
| 185 | DatabaseConnection::Disconnected => Err(conn_err("Disconnected")), |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | #[instrument(level = "trace")] |
| 190 | #[allow(unused_variables)] |
nothing calls this directly
no test coverage detected