Skip to main content

DataSourceProvider

Trait DataSourceProvider 

Source
pub trait DataSourceProvider: 'static {
    // Required method
    fn initialize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        uri: String,
        session: &'life1 VortexSession,
    ) -> Pin<Box<dyn Future<Output = VortexResult<Option<DataSourceRef>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Create a Vortex source from serialized configuration.

Providers can be registered with Vortex under a specific

Required Methods§

Source

fn initialize<'life0, 'life1, 'async_trait>( &'life0 self, uri: String, session: &'life1 VortexSession, ) -> Pin<Box<dyn Future<Output = VortexResult<Option<DataSourceRef>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Attempt to initialize a new source.

Returns Ok(None) if the provider cannot handle the given URI.

Implementors§