SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::LimitSelectDecorator< SELECTER, OPERAND > Class Template Reference

#include <sqt/orm/querier/selecter/limit_select_decorator.h>

Description

template<SelecterType SELECTER, ValueOperandType OPERAND>
class sqt::LimitSelectDecorator< SELECTER, OPERAND >

A selecter decorator that adds a LIMIT clause to the SQL statement of the decorated selecter.

Template Parameters
SELECTERThe selecter type to be decorated, which must satisfy the sqt::SelecterType concept.
OPERANDThe operand type that provides the limit value, which must satisfy the sqt::ValueOperandType concept.

To create instances of this class template, use the Limit() method of the sqt::LimitSelectCapability<> class template, which is a mixin for selecters that support the limit clause.

This class template satisfies the sqt::SelecterType concept.

See also
sqt::LimitSelectCapability<>
sqt::SelecterType
sqt::ValueOperandType

Public Types

using ResultElementType = SELECTER::ResultElementType

Static Public Member Functions

static std::string_view BuildSQL ()
static constexpr auto BuildPlaceholderBinders () noexcept
static ResultElementType GetResultElement (Statement &statement)

Public Member Functions

constexpr LimitSelectDecorator (SELECTER selecter, OPERAND operand) noexcept
void BindInlineParameters (Statement &statement) const

Static Public Attributes

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