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§
Sourcefn execute_statement(
&self,
sql: String,
) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
fn execute_statement( &self, sql: String, ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
Execute a single SQL statement and return the result asynchronously.
Sourcefn batch_execute(
&self,
sqls: Vec<String>,
) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
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.