|
static |
Binds a nullable value to the statement at the specified parameter index.
| statement | The statement to which the value is bound. |
| parameter_index | The index of the parameter to which the value is bound. |
| value | The nullable value to bind. |
| sqt::SQLError | Thrown if the binding fails. |
If the value is null, this method calls the BindParameter(int, std::nullopt_t) method of the statement to bind a null. Otherwise, it delegates to the BindValue() method of the corresponding sqt::PrimitiveValueTraits<> specialization to bind the underlying value.