Function limit

Synopsis

#include <orm_lib/inc/drogon/orm/Mapper.h>

Mapper< T > & limit(size_t limit)

Description

Add a limit to the query.

Parameters:

limit - The limit

Return
Mapper<T>& The Mapper itself.

Mentioned in

Source

Lines 1499-1505 in orm_lib/inc/drogon/orm/Mapper.h. Line 131 in orm_lib/inc/drogon/orm/Mapper.h.

template <typename T>
inline Mapper<T> &Mapper<T>::limit(size_t limit)
{
    assert(limit > 0);
    limit_ = limit;
    return *this;
}





Add Discussion as Guest

Log in to DocsForge