[][src]Trait rbatis::plugin::intercept::SqlIntercept

pub trait SqlIntercept: Send + Sync {
    fn name(&self) -> &str;
fn do_intercept(
        &self,
        rb: &Rbatis,
        sql: &mut String,
        args: &mut Vec<Value>,
        is_prepared_sql: bool
    ) -> Result<(), Error>; }

sql intercept

Required methods

fn name(&self) -> &str

the intercept name

fn do_intercept(
    &self,
    rb: &Rbatis,
    sql: &mut String,
    args: &mut Vec<Value>,
    is_prepared_sql: bool
) -> Result<(), Error>

do intercept sql/args is_prepared_sql: if is run in prepared_sql=ture

Loading content...

Implementors

Loading content...