API reference › @evolu/sqlite-wasm › c-api › sqlite3_set_auxdata
function sqlite3_set_auxdata(
deps: SqliteWasmDep,
): (
context: SqliteContextPtr,
N: number,
pAux: 0 | WasmPtr,
xDelete: 0 | SqliteFunctionPtr,
) => void;
Defined in: packages/sqlite-wasm/src/CApi.ts:2714
Attaches pAux to the N-th argument of the running application-defined function, where sqlite3_get_auxdata finds it while the argument stays the same. SQLite may discard it at any time, even before this call returns, calling a non-NULL xDelete with pAux, so pAux must not be used afterwards.
Wasm type v(iiii). Signature ["sqlite3_set_auxdata", undefined, "sqlite3_context*", "int", "*", "*"] from SQLite's table.