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

Method list_databases

crates/paimon/src/catalog/filesystem.rs:204–210  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

202#[async_trait]
203impl Catalog for FileSystemCatalog {
204 async fn list_databases(&self) -> Result<Vec<String>> {
205 let dirs = self.list_directories(&self.warehouse).await?;
206 Ok(dirs
207 .into_iter()
208 .filter_map(|name| name.strip_suffix(DB_SUFFIX).map(|s| s.to_string()))
209 .collect())
210 }
211
212 async fn create_database(
213 &self,

Callers 1

test_database_operationsFunction · 0.45

Calls 1

list_directoriesMethod · 0.80

Tested by 1

test_database_operationsFunction · 0.36