Skip to main content

CatalogProviderFactory

Trait CatalogProviderFactory 

Source
pub trait CatalogProviderFactory:
    Debug
    + Sync
    + Send {
    // Required method
    fn create<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        state: &'life1 dyn Session,
        cmd: &'life2 CreateExternalCatalog,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn CatalogProvider>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

A factory which creates CatalogProviders at runtime given a URL.

Required Methods§

Source

fn create<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 dyn Session, cmd: &'life2 CreateExternalCatalog, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn CatalogProvider>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Create a CatalogProvider using the given cmd

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§