(&self, stmt: Statement)
| 123 | #[instrument(level = "trace")] |
| 124 | #[allow(unused_variables)] |
| 125 | async fn execute(&self, stmt: Statement) -> Result<ExecResult, DbErr> { |
| 126 | match self { |
| 127 | #[cfg(feature = "sqlx-mysql")] |
| 128 | DatabaseConnection::SqlxMySqlPoolConnection(conn) => conn.execute(stmt).await, |
| 129 | #[cfg(feature = "sqlx-postgres")] |
| 130 | DatabaseConnection::SqlxPostgresPoolConnection(conn) => conn.execute(stmt).await, |
| 131 | #[cfg(feature = "sqlx-sqlite")] |
| 132 | DatabaseConnection::SqlxSqlitePoolConnection(conn) => conn.execute(stmt).await, |
| 133 | #[cfg(feature = "mock")] |
| 134 | DatabaseConnection::MockDatabaseConnection(conn) => conn.execute(stmt), |
| 135 | #[cfg(feature = "proxy")] |
| 136 | DatabaseConnection::ProxyDatabaseConnection(conn) => conn.execute(stmt).await, |
| 137 | DatabaseConnection::Disconnected => Err(conn_err("Disconnected")), |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | #[instrument(level = "trace")] |
| 142 | #[allow(unused_variables)] |
no test coverage detected