SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ BindValue()

template<PrimaryKeyEntityValueType T>
void sqt::NoPrimaryKeyEntityValueTraits< T >::BindValue ( Statement & statement,
int parameter_index,
const EntityType & value )
static

Binds the non-primary key columns of the entity value to the statement, starting at the specified parameter index.

Parameters
statementThe statement to which the value is bound.
parameter_indexThe starting index of the parameters to which the value is bound.
valueThe entity value to bind.
Exceptions
sqt::SQLErrorThrown if the binding fails.

This method delegates to the BindValueFromEntity() method of each non-primary key column in the entity's table type. The parameter index is incremented for each column.

See also
sqt::Column<>::BindValueFromEntity()