API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_error
function sqlite3_result_error(
deps: SqliteWasmDep,
): (context: SqliteContextPtr, message: WasmPtr, n: number) => void;
Defined in: packages/sqlite-wasm/src/CApi.ts:2879
Makes an application-defined function fail with a copy of a UTF-8 message of n bytes, or up to its NUL terminator when n is negative. It resets the error code to SQLITE_ERROR, so call sqlite3_result_error_code after it.
Wasm type v(iii). Signature ["sqlite3_result_error", undefined, "sqlite3_context*", "string", "int"] from SQLite's table.