SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ Where()

template<typename QUERIER, template< typename, typename > typename DECORATOR = WhereDecorator>
template<PredicateType PREDICATE>
auto sqt::WhereCapability< QUERIER, DECORATOR >::Where ( PREDICATE && predicate) const
constexpr

Creates a decorator that adds a WHERE clause to the current querier.

Template Parameters
PREDICATEThe predicate type that defines the condition for the WHERE clause. It must satisfy the sqt::PredicateType concept.
Parameters
predicateThe predicate instance that defines the condition for the WHERE clause.
Returns
A DECORATOR instance. It will be a sqt::WhereDecorator<> for non-selecters, or a sqt::WhereSelectDecorator<> for selecters.
See also
sqt::PredicateType
sqt::WhereDecorator<>
sqt::WhereSelectDecorator<>