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

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

Description

template<QuerierType QUERIER, PredicateType PREDICATE>
class sqt::WhereDecorator< QUERIER, PREDICATE >

A querier decorator that adds a WHERE clause to the SQL statement of the decorated querier.

Template Parameters
QUERIERThe querier type to be decorated, which must satisfy the sqt::QuerierType concept.
PREDICATEThe predicate type to be applied in the WHERE clause. It must satisfy the sqt::PredicateType concept.

To create instances of this class template, use the Where() method of the sqt::WhereCapability<> class template, which is a mixin for queriers that support the WHERE clause.

This class template satisfies the sqt::QuerierType concept.

See also
sqt::PredicateType
sqt::QuerierType
sqt::WhereCapability<>

Static Public Member Functions

static std::string_view BuildSQL ()
static constexpr auto BuildPlaceholderBinders () noexcept

Public Member Functions

constexpr WhereDecorator (QUERIER QUERIER, PREDICATE predicate)
void BindInlineParameters (Statement &statement) const

Static Public Attributes

static constexpr std::size_t ParameterIndex
static constexpr std::size_t ParameterCount = PREDICATE::ParameterCount