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

Method get_table

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

Get table information.

(&self, identifier: &Identifier)

Source from the content-addressed store, hash-verified

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<()> {

Callers 2

paimon_catalog_get_tableFunction · 0.45
mainFunction · 0.45

Calls 5

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

Tested by

no test coverage detected