pub trait PaginatorTrait<'db, C>where
    C: ConnectionTrait,
{ type Selector: SelectorTrait + Send + Sync + 'db; fn paginate(
        self,
        db: &'db C,
        page_size: u64
    ) -> Paginator<'db, C, Self::Selector>; fn count<'async_trait>(
        self,
        db: &'db C
    ) -> Pin<Box<dyn Future<Output = Result<u64, DbErr>> + Send + 'async_trait>>
    where
        Self: Send + Sized + Send + 'async_trait,
        'db: 'async_trait
, { ... } }
Expand description

A Trait for any type that can paginate results

Required Associated Types§

Select operation

Required Methods§

Paginate the result of a select operation.

Provided Methods§

Perform a count on the paginated results

Implementors§