Execute a DDL command.
(&mut self, sql: &str)
| 274 | |
| 275 | /// Execute a DDL command. |
| 276 | pub async fn execute_ddl(&mut self, sql: &str) -> NodeDbResult<QueryResult> { |
| 277 | let resp = self |
| 278 | .send( |
| 279 | OpCode::Ddl, |
| 280 | TextFields { |
| 281 | sql: Some(sql.to_string()), |
| 282 | ..Default::default() |
| 283 | }, |
| 284 | ) |
| 285 | .await?; |
| 286 | response_to_query_result(resp) |
| 287 | } |
| 288 | |
| 289 | /// Begin a transaction. |
| 290 | pub async fn begin(&mut self) -> NodeDbResult<()> { |
no test coverage detected