API reference › @evolu/sqlite-wasm › c-api › sqlite3_bind_pointer
function sqlite3_bind_pointer(
deps: SqliteWasmDep,
): (
pStmt: SqliteStmtPtr,
index: number,
pPtr: 0 | WasmPtr,
zPType: CStringPtr,
xDestructor: 0 | SqliteFunctionPtr,
) => SqliteResultCode;
Defined in: packages/sqlite-wasm/src/CApi.ts:2156
Binds SQL NULL carrying pPtr tagged with the type string zPType, which only sqlite3_value_pointer with an equal type string returns. The type string should be static because SQLite keeps its address, and SQLite calls xDestructor, unless NULL, with pPtr when done, even when binding fails.
Wasm type i(iiiii). Signature ["sqlite3_bind_pointer", "int", "sqlite3_stmt*", "int", "*", "string:static", "*"] from SQLite's table.