Trait sea_orm::entity::prelude::PaginatorTrait [−][src]
pub trait PaginatorTrait<'db, C> where
C: ConnectionTrait<'db>, {
type Selector: SelectorTrait + Send + Sync + 'db;
fn paginate(
self,
db: &'db C,
page_size: usize
) -> Paginator<'db, C, Self::Selector>;
fn count<'async_trait>(
self,
db: &'db C
) -> Pin<Box<dyn Future<Output = Result<usize, DbErr>> + Send + 'async_trait>>
where
Self: Send + Sized,
'db: 'async_trait,
Self: Send + 'async_trait,
{ ... }
}
Expand description
A Trait for any type that can paginate results
Associated Types
type Selector: SelectorTrait + Send + Sync + 'db
type Selector: SelectorTrait + Send + Sync + 'db
Select operation