MCPcopy Create free account
hub / github.com/apache/paimon-rust / drop_table

Method drop_table

crates/paimon/src/api/rest_api.rs:370–377  ·  view source on GitHub ↗

Drop a table.

(&self, identifier: &Identifier)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.45

Calls 5

validate_non_empty_multiFunction · 0.85
objectMethod · 0.80
databaseMethod · 0.45
tableMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected