Execute operation on specific catalog This is the main entry point for all catalog operations. The operation is routed to the appropriate catalog provider based on the catalog name. # Arguments `catalog_name` - Name of the catalog to execute the operation on `operation` - The catalog operation to execute # Returns `Ok(CatalogResponse)` with the operation result `Err(CatalogError::CatalogNotFoun
(
&mut self,
catalog_name: &str,
operation: CatalogOperation,
)
| 79 | /// * `Err(CatalogError::CatalogNotFound)` if catalog doesn't exist |
| 80 | /// * `Err(CatalogError)` if the operation fails |
| 81 | pub fn execute( |
| 82 | &mut self, |
| 83 | catalog_name: &str, |
| 84 | operation: CatalogOperation, |
| 85 | ) -> CatalogResult<CatalogResponse> { |
| 86 | self.registry |
| 87 | .get_mut(catalog_name) |
| 88 | .ok_or_else(|| CatalogError::CatalogNotFound(catalog_name.to_string()))? |
| 89 | .execute(operation) |
| 90 | } |
| 91 | |
| 92 | /// Execute a read-only query on a catalog |
| 93 | /// |
no test coverage detected