Connection

Trait Connection 

Source
pub trait Connection:
    Debug
    + Send
    + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn infer_schema<'life0, 'life1, 'async_trait>(
        &'life0 self,
        source: &'life1 TableSource,
    ) -> Pin<Box<dyn Future<Output = Result<RemoteSchemaRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn query<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        conn_options: &'life1 ConnectionOptions,
        source: &'life2 TableSource,
        table_schema: SchemaRef,
        projection: Option<&'life3 Vec<usize>>,
        unparsed_filters: &'life4 [String],
        limit: Option<usize>,
    ) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn insert<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        conn_options: &'life1 ConnectionOptions,
        unparser: Arc<dyn Unparse>,
        table: &'life2 [String],
        remote_schema: RemoteSchemaRef,
        input: SendableRecordBatchStream,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn infer_schema<'life0, 'life1, 'async_trait>( &'life0 self, source: &'life1 TableSource, ) -> Pin<Box<dyn Future<Output = Result<RemoteSchemaRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn query<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, conn_options: &'life1 ConnectionOptions, source: &'life2 TableSource, table_schema: SchemaRef, projection: Option<&'life3 Vec<usize>>, unparsed_filters: &'life4 [String], limit: Option<usize>, ) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn insert<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, conn_options: &'life1 ConnectionOptions, unparser: Arc<dyn Unparse>, table: &'life2 [String], remote_schema: RemoteSchemaRef, input: SendableRecordBatchStream, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§