Function findAll

Summary

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

(1) std::vector< T > findAll() noexcept(false)

(2) void findAll(const MultipleRowsCallback &rcb, const ExceptionCallback &ecb) noexcept

Function overload

Synopsis

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

std::vector< T > findAll() noexcept(false)

Description

Find all the records in the table.

Return
std::vector<T> The vector of all the records.

Mentioned in

Source

Lines 1046-1050 in orm_lib/inc/drogon/orm/Mapper.h. Line 374 in orm_lib/inc/drogon/orm/Mapper.h.

template <typename T>
inline std::vector<T> Mapper<T>::findAll() noexcept(false)
{
    return findBy(Criteria());
}

Synopsis

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

void findAll(const MultipleRowsCallback &rcb, const ExceptionCallback &ecb) noexcept

Description

Asynchronously find all the records in the table.

Parameters:

rcb - is called with the result.

ecb - is called when an error occurs.

Mentioned in

Source

Lines 1051-1056 in orm_lib/inc/drogon/orm/Mapper.h. Line 382 in orm_lib/inc/drogon/orm/Mapper.h.

template <typename T>
inline void Mapper<T>::findAll(const MultipleRowsCallback &rcb,
                               const ExceptionCallback &ecb) noexcept
{
    findBy(Criteria(), rcb, ecb);
}





Add Discussion as Guest

Log in to DocsForge