Get table information.
(&self, identifier: &Identifier)
| 345 | |
| 346 | /// Get table information. |
| 347 | pub async fn get_table(&self, identifier: &Identifier) -> Result<GetTableResponse> { |
| 348 | let database = identifier.database(); |
| 349 | let table = identifier.object(); |
| 350 | validate_non_empty_multi(&[(database, "database name"), (table, "table name")])?; |
| 351 | let path = self.resource_paths.table(database, table); |
| 352 | self.client.get(&path, None::<&[(&str, &str)]>).await |
| 353 | } |
| 354 | |
| 355 | /// Rename a table. |
| 356 | pub async fn rename_table(&self, source: &Identifier, destination: &Identifier) -> Result<()> { |
no test coverage detected