SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::WhereCapability< QUERIER, DECORATOR > Class Template Reference

#include <sqt/orm/querier/where_capability.h>

Description

template<typename QUERIER, template< typename, typename > typename DECORATOR = WhereDecorator>
class sqt::WhereCapability< QUERIER, DECORATOR >

A mixin class template that provides the capability to add a WHERE clause to a querier.

Template Parameters
QUERIERThe querier type that the mixin is applied to. It must satisfy the sqt::QuerierType concept.
DECORATORThe decorator type that the Where() method creates. It defaults to the sqt::WhereDecorator<> for non-selecters, or sqt::WhereSelectDecorator<> for selecters.

This class template provides the Where() method to the specified querier type, which creates instances of the DECORATOR that adds a WHERE clause to the SQL statement.

See also
sqt::QuerierType
sqt::WhereDecorator<>
sqt::WhereSelectDecorator<>

Public Member Functions

template<PredicateType PREDICATE>
constexpr auto Where (PREDICATE &&predicate) const