(&self, sql: &str)
| 49 | |
| 50 | |
| 51 | async fn execute(&self, sql: &str) -> Result<(), DbError> { |
| 52 | for single_sql in sql.split(";") { |
| 53 | if !single_sql.trim().is_empty() { |
| 54 | sqlx::query(single_sql).execute(&self.pool).await?; |
| 55 | } |
| 56 | } |
| 57 | Ok(()) |
| 58 | } |
| 59 | |
| 60 | async fn fetch_strings(&self, sql: &str) -> Result<Vec<String>, DbError> { |
| 61 | let rows = sqlx::query(sql).fetch_all(&self.pool).await?; |
no test coverage detected