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

◆ BindValue()

template<BasicValueTraitsType... TRAITS>
void sqt::CompositeValueTraits< TRAITS >::BindValue ( Statement & statement,
int parameter_index,
const ValueType & value )
static

Binds a composite 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 composite value to bind.
Exceptions
sqt::SQLErrorThrown if the binding fails.

This method delegates to the BindValue() method of each basic value traits type in the TRAITS type pack. The parameter index is incremented for each value in the composite value.