|
|
| Query ()=default |
| | Constructs a Query object.
|
| auto | where (const query::Predicate &predicate) -> Query< T > & |
| | Replaces the WHERE predicate.
|
| auto | andWhere (const query::Predicate &predicate) -> Query< T > & |
| | Adds a predicate with AND.
|
| auto | orWhere (const query::Predicate &predicate) -> Query< T > & |
| | Adds a predicate with OR.
|
| template<typename... Orders> |
| auto | orderBy (Orders... orders) -> Query< T > & |
| | Sets the ORDER BY clauses for the select query.
|
| template<typename... Columns> |
| auto | groupBy (Columns... columns) -> Query< T > & |
| | Sets the GROUP BY columns for the select query.
|
| auto | having (const query::AggregatePredicate &predicate) -> Query< T > & |
| | Replaces the HAVING predicate.
|
| auto | andHaving (const query::AggregatePredicate &predicate) -> Query< T > & |
| | Adds an aggregate predicate with AND.
|
| auto | orHaving (const query::AggregatePredicate &predicate) -> Query< T > & |
| | Adds an aggregate predicate with OR.
|
| auto | distinct () -> Query< T > & |
| | Select distinct rows.
|
| auto | offset (std::size_t offset) -> Query< T > & |
| | Sets the OFFSET clause for the select query.
|
| auto | limit (std::size_t limit) -> Query< T > & |
| | Sets the LIMIT clause for the select query.
|
| auto | disableJoining () -> Query< T > & |
| | Disables joining for the select query.
|
| auto | include (std::string relation) -> Query< T > & |
| | Explicitly loads a mapped OneToMany or ManyToMany collection.
|
template<typename T>
class orm::Query< T >
A template class representing a select query in the ORM framework.
This class provides functionality for building a select query.
- Template Parameters
-