Trait diesel:: prelude:: LimitDsl
[−]
[src]
pub trait LimitDsl { type Output: Query; fn limit(self, limit: i64) -> Self::Output; }
Sets the limit clause of a query. If there was already a limit clause, it will be overridden. This is automatically implemented for the various query builder types.
Associated Types
type Output: Query
Required Methods
Implementors
impl<'a, ST, QS, DB> LimitDsl for BoxedSelectStatement<'a, ST, QS, DB> where DB: Backend, BoxedSelectStatement<'a, ST, QS, DB>: Query