Trait Connection
Source pub trait Connection:
Debug
+ Send
+ Sync {
// Required methods
fn infer_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
transform: Option<Arc<dyn Transform>>,
) -> Pin<Box<dyn Future<Output = Result<(RemoteSchemaRef, SchemaRef)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query<'life0, 'async_trait>(
&'life0 self,
sql: String,
table_schema: SchemaRef,
projection: Option<Vec<usize>>,
) -> Pin<Box<dyn Future<Output = Result<SendableRecordBatchStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}