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

#include <sqt/orm/querier/inserter/entity_inserter.h>

Description

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

A primary inserter that inserts entities into the table.

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

This primary inserter inserts entities into the table. The columns to be inserted are specified by the VALUE_OPERAND type.

To create instances of this inserter, use the sqt::DataContext::MakeInserter() method.

This class template satisfies the sqt::QuerierType concept.

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

Static Public Member Functions

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

Public Member Functions

constexpr EntityInserter (VALUE_OPERAND value)
void BindInlineParameters (Statement &statement) const

Static Public Attributes

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