SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::Binder< TRAITS > Class Template Reference

#include <sqt/orm/expression/binder/binder.h>

Description

template<ValueTraitsType TRAITS>
class sqt::Binder< TRAITS >

Provides information for binding values to a placeholder of an executor.

Template Parameters
TRAITSThe value traits type of the binder.

The sqt::Binder<> class template is used by the sqt::BinderChain<> class template to bind values to placeholders in an executor. It provides the necessary binding information, such as the value traits type and the index of the placeholder.

This class template satisfies the sqt::BinderType concept.

See also
sqt::BinderChain<>
sqt::BinderType

Public Types

using ValueTraits = TRAITS
using ValueType = typename TRAITS::ValueType

Public Member Functions

constexpr Binder (int index) noexcept
constexpr int Index () const noexcept