macro_rules! impl_select_page {
    ($table:ty{$fn_name:ident($($param_key:ident:$param_type:ty$(,)?)*) => $where_sql:expr}) => { ... };
    ($table:ty{$fn_name:ident($($param_key:ident:$param_type:ty$(,)?)*) => $where_sql:expr}$(,$table_name:expr)?) => { ... };
}
Expand description

pysql impl_select_page

do_count: default do_count is a bool param value to determine the statement type

#[derive(serde::Serialize, serde::Deserialize)]
pub struct MockTable{}
rbatis::impl_select_page!(MockTable{select_page() =>"
     if do_count == false:
       `order by create_time desc`"});

limit_sql: If the database does not support the statement limit ${page_no},${page_size},You should add param ‘limit_sql:&str’

#[derive(serde::Serialize, serde::Deserialize)]
pub struct MockTable{}
rbatis::impl_select_page!(MockTable{select_page(limit_sql:&str) =>"
     if do_count == false:
       `order by create_time desc`"});

you can see ${page_no} = (page_no -1) * page_size; you can see ${page_size} = page_size;