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

◆ BindParameter() [5/6]

void sqt::Statement::BindParameter ( int parameter_index,
std::span< const std::byte > bytes )

Binds the specified bytes as a BLOB to the parameter at the specified index.

Parameters
parameter_indexThe index of the parameter at where the bytes is bound.
bytesThe span of bytes to bind. The bytes are copied to the statement.
Exceptions
sqt::SQLErrorThrown if fails to bind the bytes.