MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / paginate

Method paginate

src/executor/paginator.rs:263–272  ·  view source on GitHub ↗
(self, db: &'db C, page_size: u64)

Source from the content-addressed store, hash-verified

261 type Selector = S;
262
263 fn paginate(self, db: &'db C, page_size: u64) -> Paginator<'db, C, S> {
264 assert!(page_size != 0, "page_size should not be zero");
265 Paginator {
266 query: self.query,
267 page: 0,
268 page_size,
269 db,
270 selector: PhantomData,
271 }
272 }
273}
274
275impl<'db, C, S> PaginatorTrait<'db, C> for SelectorRaw<S>

Callers 15

countMethod · 0.80
existsMethod · 0.80
fetch_pageFunction · 0.80
fetch_page_rawFunction · 0.80
fetchFunction · 0.80
fetch_rawFunction · 0.80
num_pagesFunction · 0.80
num_pages_rawFunction · 0.80
next_and_cur_pageFunction · 0.80
next_and_cur_page_rawFunction · 0.80
fetch_and_nextFunction · 0.80
fetch_and_next_rawFunction · 0.80

Calls 3

exprMethod · 0.80
newFunction · 0.50
into_modelMethod · 0.45

Tested by

no test coverage detected