Trait Connection

Source
pub trait Connection:
    Debug
    + Send
    + Sync {
    // Required methods
    fn infer_schema<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sql: &'life1 str,
    ) -> 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,
        sql: &'life2 str,
        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;
}

Required Methods§

Source

fn infer_schema<'life0, 'life1, 'async_trait>( &'life0 self, sql: &'life1 str, ) -> 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, sql: &'life2 str, 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,

Implementors§