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