Lightweight 0.1.0
Loading...
Searching...
No Matches
SqlCoreDataMapperQueryBuilder< Record, Derived > Class Template Reference

#include <DataMapper.hpp>

Inherits SqlBasicSelectQueryBuilder< Derived >.

Public Member Functions

std::vector< Record > All ()
 
std::vector< Record > First (size_t n)
 
std::vector< Record > Range (size_t offset, size_t limit)
 

Protected Member Functions

LIGHTWEIGHT_FORCE_INLINE SqlCoreDataMapperQueryBuilder (SqlStatement &stmt, std::string fields) noexcept
 

Detailed Description

template<typename Record, typename Derived>
class SqlCoreDataMapperQueryBuilder< Record, Derived >

Main API for mapping records to C++ from the database using high level C++ syntax.

Definition at line 150 of file DataMapper.hpp.

Constructor & Destructor Documentation

◆ SqlCoreDataMapperQueryBuilder()

template<typename Record , typename Derived >
LIGHTWEIGHT_FORCE_INLINE SqlCoreDataMapperQueryBuilder< Record, Derived >::SqlCoreDataMapperQueryBuilder ( SqlStatement stmt,
std::string  fields 
)
inlineexplicitprotectednoexcept

Definition at line 171 of file DataMapper.hpp.

Member Function Documentation

◆ All()

template<typename Record , typename Derived >
std::vector< Record > SqlCoreDataMapperQueryBuilder< Record, Derived >::All ( )
inline

Definition at line 179 of file DataMapper.hpp.

◆ First()

template<typename Record , typename Derived >
std::vector< Record > SqlCoreDataMapperQueryBuilder< Record, Derived >::First ( size_t  n)
inline

Definition at line 194 of file DataMapper.hpp.

◆ Range()

template<typename Record , typename Derived >
std::vector< Record > SqlCoreDataMapperQueryBuilder< Record, Derived >::Range ( size_t  offset,
size_t  limit 
)
inline

Definition at line 210 of file DataMapper.hpp.


The documentation for this class was generated from the following file: