pub trait Executor: RBatisRef + Send + Sync {
// Required methods
fn exec(
&self,
sql: &str,
args: Vec<Value>
) -> BoxFuture<'_, Result<ExecResult, Error>>;
fn query(
&self,
sql: &str,
args: Vec<Value>
) -> BoxFuture<'_, Result<Value, Error>>;
// Provided method
fn name(&self) -> &str { ... }
}
Expand description
the rbatis’s Executor. this trait impl with structs = RBatis,RBatisConnExecutor,RBatisTxExecutor,RBatisTxExecutorGuard