A select query that returns a user-defined DTO instead of the full source model.
More...
#include <projection_query.hpp>
|
|
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 > & |
|
|
template<typename> |
| class | orm::Database |
|
class | orm::DatabaseCore |
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
-
| Source | The mapped ORM model used in FROM, WHERE, ORDER BY, and projected columns. |
| Result | The flat DTO hydrated from projected aliases. |
The documentation for this class was generated from the following file: