API reference › @evolu/sqlite-wasm › c-api › sqlite3_bind_blob

function sqlite3_bind_blob(
  deps: SqliteWasmDep,
): (
  pStmt: SqliteStmtPtr,
  index: number,
  value: 0 | WasmPtr,
  n: number,
  destructor: SqliteDestructor,
) => SqliteResultCode;

Defined in: packages/sqlite-wasm/src/CApi.ts:2126

Binds n bytes to a parameter; a negative n is undefined behavior. A NULL address binds SQL NULL, so an empty blob needs a non-NULL address.

Wasm type i(iiiii). Signature ["sqlite3_bind_blob", "int", "sqlite3_stmt*", "int", "*", "int", "*"] from Evolu's supplement: SQLite binds it by hand to accept typed arrays.

See https://sqlite.org/c3ref/bind_blob.html.