Skip to main content

RedshiftQueryBackend

Trait RedshiftQueryBackend 

Source
pub trait RedshiftQueryBackend: Send + Sync {
    // Required methods
    fn execute_statement(
        &self,
        sql: String,
    ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>;
    fn batch_execute(
        &self,
        sqls: Vec<String>,
    ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>;
}
Expand description

Pluggable backend for Redshift Data query execution.

Required Methods§

Source

fn execute_statement( &self, sql: String, ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>

Execute a single SQL statement and return the result asynchronously.

Source

fn batch_execute( &self, sqls: Vec<String>, ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>

Execute a batch of SQL statements sequentially. Batch executions typically do not return a result set.

Implementors§