(&self, stmt: S)
| 25 | } |
| 26 | |
| 27 | pub async fn exec_stmt<S>(&self, stmt: S) -> Result<(), DbErr> |
| 28 | where |
| 29 | S: StatementBuilder, |
| 30 | { |
| 31 | let builder = self.conn.get_database_backend(); |
| 32 | self.conn.execute(builder.build(&stmt)).await.map(|_| ()) |
| 33 | } |
| 34 | |
| 35 | pub fn get_database_backend(&self) -> DbBackend { |
| 36 | self.conn.get_database_backend() |