[−][src]Trait rbatis::plugin::page::PagePlugin
default page plugin
Required methods
pub fn make_page_sql(
&self,
driver_type: &DriverType,
context_id: &str,
sql: &str,
args: &Vec<Value>,
page: &dyn IPageRequest
) -> Result<(String, String), Error>
[src]
&self,
driver_type: &DriverType,
context_id: &str,
sql: &str,
args: &Vec<Value>,
page: &dyn IPageRequest
) -> Result<(String, String), Error>
return 2 sql for select , (count_sql,select_sql)
Provided methods
pub fn name(&self) -> &str
[src]
the name
pub fn make_count_sql(&self, sql: &str) -> String
[src]
auto make count sql,also you can rewrite this method
Implementors
impl PagePlugin for RbatisPagePlugin
[src]
pub fn make_page_sql(
&self,
driver_type: &DriverType,
context_id: &str,
sql: &str,
args: &Vec<Value>,
page: &dyn IPageRequest
) -> Result<(String, String), Error>
[src]
&self,
driver_type: &DriverType,
context_id: &str,
sql: &str,
args: &Vec<Value>,
page: &dyn IPageRequest
) -> Result<(String, String), Error>