(&self)
| 202 | #[async_trait] |
| 203 | impl 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, |