A select query that returns a user-defined DTO instead of the full source model.
More...
|
| | ProjectionQuery ()=default |
| template<typename... Projections> |
| auto | project (Projections... projections) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | where (const P &predicate) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | andWhere (const P &predicate) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | orWhere (const P &predicate) -> ProjectionQuery< Source, Result > & |
| template<typename... Orders> |
| auto | orderBy (Orders... orders) -> ProjectionQuery< Source, Result > & |
| template<typename... Columns> |
| auto | groupBy (Columns... columns) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | having (const P &predicate) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | andHaving (const P &predicate) -> ProjectionQuery< Source, Result > & |
| template<typename P> |
| auto | orHaving (const P &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 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. |
Definition at line 185 of file projection.cppm.