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

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

Inheritance diagram for sqt::ColumnUpdater< CONFLICT_ACTION, ASSIGNMENTS >:

Description

template<ConflictAction CONFLICT_ACTION, AssignmentType... ASSIGNMENTS>
class sqt::ColumnUpdater< CONFLICT_ACTION, ASSIGNMENTS >

A primary updater that updates values of specific columns in the table.

Template Parameters
CONFLICT_ACTIONThe conflict action to be used when a unique constraint violation occurs.
ASSIGNMENTSThe assignment types that the updater uses for updating. Each assignment type must satisfy the sqt::AssignmentType concept.

This primary updater updates values of specific columns in the table without any condition. The columns to be updated are specified by the ASSIGNMENTS types.

To create instances of this updater, use the sqt::DataContext::MakeUpdater(ASSIGNMENTS&&... assignments) method.

This class template satisfies the sqt::QuerierType concept.

See also
sqt::AssignmentType
sqt::ConflictAction
sqt::DataContext<>::MakeUpdater(ASSIGNMENTS&&... assignments)
sqt::QuerierType

Static Public Member Functions

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

Public Member Functions

constexpr ColumnUpdater (ASSIGNMENTS... assignments) noexcept
void BindInlineParameters (Statement &statement) const
Public Member Functions inherited from sqt::WhereCapability< ColumnUpdater< CONFLICT_ACTION, ASSIGNMENTS... > >
constexpr auto Where (PREDICATE &&predicate) const

Static Public Attributes

static constexpr std::size_t ParameterIndex = 1
static constexpr std::size_t ParameterCount = (ASSIGNMENTS::ParameterCount + ... + 0)