ORM C++
Loading...
Searching...
No Matches
orm::ProjectionQuery< Source, Result > Class Template Reference

A select query that returns a user-defined DTO instead of the full source model. More...

#include <projection_query.hpp>

Public Member Functions

template<typename... Projections>
auto project (Projections... projections) -> ProjectionQuery< Source, Result > &
auto where (const query::Predicate &predicate) -> ProjectionQuery< Source, Result > &
auto andWhere (const query::Predicate &predicate) -> ProjectionQuery< Source, Result > &
auto orWhere (const query::Predicate &predicate) -> ProjectionQuery< Source, Result > &
template<typename... Orders>
auto orderBy (Orders... orders) -> ProjectionQuery< Source, Result > &
template<typename... Columns>
auto groupBy (Columns... columns) -> ProjectionQuery< Source, Result > &
auto having (const query::AggregatePredicate &predicate) -> ProjectionQuery< Source, Result > &
auto andHaving (const query::AggregatePredicate &predicate) -> ProjectionQuery< Source, Result > &
auto orHaving (const query::AggregatePredicate &predicate) -> ProjectionQuery< Source, Result > &
auto distinct () -> ProjectionQuery< Source, Result > &
auto offset (std::size_t offset) -> ProjectionQuery< Source, Result > &
auto limit (std::size_t limit) -> ProjectionQuery< Source, Result > &
auto disableJoining () -> ProjectionQuery< Source, Result > &

Friends

template<typename>
class orm::Database
class orm::DatabaseCore

Detailed Description

template<typename Source, typename Result>
class orm::ProjectionQuery< Source, Result >

A select query that returns a user-defined DTO instead of the full source model.

Template Parameters
SourceThe mapped ORM model used in FROM, WHERE, ORDER BY, and projected columns.
ResultThe flat DTO hydrated from projected aliases.

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