Skip to main content

create_catalog

Function create_catalog 

Source
pub fn create_catalog(
    backend: &CatalogBackendType,
    config: &CatalogConnectConfig,
    factories: &CatalogFactoryRegistry,
) -> Result<DataCatalog>
Expand description

Resolves a catalog backend through the factory registry and opens the catalog.

All variants resolve through the registry so built-ins and custom names share one code path.

§Errors

Returns an error if the backend’s factory is not registered or opening the catalog fails.