[][src]Trait rbatis::plugin::page::PagePlugin

pub trait PagePlugin: Send + Sync {
    fn create_page_sql(
        &self,
        driver_type: &DriverType,
        tx_id: &str,
        sql: &str,
        args: &Vec<Value>,
        page: &dyn IPageRequest
    ) -> Result<(String, String), Error>; }

default page plugin

Required methods

fn create_page_sql(
    &self,
    driver_type: &DriverType,
    tx_id: &str,
    sql: &str,
    args: &Vec<Value>,
    page: &dyn IPageRequest
) -> Result<(String, String), Error>

return 2 sql for select , (count_sql,select_sql)

Loading content...

Implementors

impl PagePlugin for RbatisPagePlugin[src]

Loading content...