SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::EntityUpdater< CONFLICT_ACTION, VALUE_OPERAND > Class Template Reference

#include <sqt/orm/querier/updater/entity_updater.h>

Inheritance diagram for sqt::EntityUpdater< CONFLICT_ACTION, VALUE_OPERAND >:

Description

template<ConflictAction CONFLICT_ACTION, EntityValueOperandType VALUE_OPERAND>
class sqt::EntityUpdater< CONFLICT_ACTION, VALUE_OPERAND >

A primary updater that updates values of entities in the table.

Template Parameters
CONFLICT_ACTIONThe conflict action to be used when a unique constraint violation occurs.
VALUE_OPERANDThe value operand type that the updater uses for updating. It must satisfy the sqt::EntityValueOperandType concept.

This primary updater updates values of entities in the table without any condition. The columns to be updated are specified by the VALUE_OPERAND type.

To create instances of this updater, use the sqt::DataContext::MakeUpdater() and sqt::DataContext::MakeNoPrimaryKeyUpdater() methods.

This class template satisfies the sqt::QuerierType concept.

See also
sqt::ConflictAction
sqt::DataContext<>::MakeNoPrimaryKeyUpdater()
sqt::DataContext<>::MakeUpdater()
sqt::EntityValueOperandType
sqt::QuerierType

Static Public Member Functions

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

Public Member Functions

constexpr EntityUpdater (VALUE_OPERAND value)
void BindInlineParameters (Statement &statement) const
Public Member Functions inherited from sqt::WhereCapability< EntityUpdater< CONFLICT_ACTION, VALUE_OPERAND > >
constexpr auto Where (PREDICATE &&predicate) const

Static Public Attributes

static constexpr std::size_t ParameterIndex = 1
static constexpr std::size_t ParameterCount = VALUE_OPERAND::ParameterCount