Drop a table.
(&self, identifier: &Identifier)
| 368 | |
| 369 | /// Drop a table. |
| 370 | pub async fn drop_table(&self, identifier: &Identifier) -> Result<()> { |
| 371 | let database = identifier.database(); |
| 372 | let table = identifier.object(); |
| 373 | validate_non_empty_multi(&[(database, "database name"), (table, "table name")])?; |
| 374 | let path = self.resource_paths.table(database, table); |
| 375 | let _resp: serde_json::Value = self.client.delete(&path, None::<&[(&str, &str)]>).await?; |
| 376 | Ok(()) |
| 377 | } |
| 378 | |
| 379 | // ==================== Partition Operations ==================== |
| 380 |