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

◆ BindValue()

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

Binds the entire 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 column in the entity's table type. The parameter index is incremented for each column.

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