API reference › @evolu/sqlite-wasm › c-api › sqlite3_bind_text
function sqlite3_bind_text(
deps: SqliteWasmDep,
): (
pStmt: SqliteStmtPtr,
index: number,
value: 0 | WasmPtr,
n: number,
destructor: SqliteDestructor,
) => SqliteResultCode;
Defined in: packages/sqlite-wasm/src/CApi.ts:2111
Binds UTF-8 text to a parameter: n bytes, which may include NUL characters, or up to the first NUL when n is negative. A NULL address binds SQL NULL.
Wasm type i(iiiii). Signature ["sqlite3_bind_text", "int", "sqlite3_stmt*", "int", "*", "int", "*"] from Evolu's supplement: SQLite
binds it by hand to accept JavaScript strings and typed arrays.