Trait rbatis::executor::Executor

source ·
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

Required Methods§

source

fn exec( &self, sql: &str, args: Vec<Value> ) -> BoxFuture<'_, Result<ExecResult, Error>>

source

fn query( &self, sql: &str, args: Vec<Value> ) -> BoxFuture<'_, Result<Value, Error>>

Provided Methods§

source

fn name(&self) -> &str

Implementors§