Trait rbatis::plugin::page::IPageRequest

source ·
pub trait IPageRequest: Send + Sync {
Show 13 methods // Required methods fn page_size(&self) -> u64; fn page_no(&self) -> u64; fn total(&self) -> u64; fn do_count(&self) -> bool; fn set_total(&mut self, arg: u64); fn set_page_size(&mut self, arg: u64); fn set_page_no(&mut self, arg: u64); fn set_do_count(&mut self, arg: bool); // Provided methods fn pages(&self) -> u64 { ... } fn offset(&self) -> u64 { ... } fn offset_limit(&self) -> u64 { ... } fn search_count(&self) -> bool { ... } fn set_search_count(&mut self, arg: bool) { ... }
}
Expand description

Page interface

Required Methods§

source

fn page_size(&self) -> u64

source

fn page_no(&self) -> u64

source

fn total(&self) -> u64

source

fn do_count(&self) -> bool

Control whether to execute count statements to count the total number

source

fn set_total(&mut self, arg: u64)

source

fn set_page_size(&mut self, arg: u64)

source

fn set_page_no(&mut self, arg: u64)

source

fn set_do_count(&mut self, arg: bool)

Control execute select count(1) from table

Provided Methods§

source

fn pages(&self) -> u64

sum pages

source

fn offset(&self) -> u64

sum offset

source

fn offset_limit(&self) -> u64

sum offset_limit

source

fn search_count(&self) -> bool

👎Deprecated: please use do_count()
source

fn set_search_count(&mut self, arg: bool)

👎Deprecated: please use set_do_count()

Implementors§

source§

impl IPageRequest for rbatis::sql::page::PageRequest

source§

impl IPageRequest for rbatis::plugin::page::PageRequest

source§

impl<T: Send + Sync> IPageRequest for rbatis::sql::page::Page<T>

source§

impl<T: Send + Sync> IPageRequest for rbatis::plugin::page::Page<T>