API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_error_code
function sqlite3_result_error_code(
deps: SqliteWasmDep,
): (context: SqliteContextPtr, code: SqliteResultCode) => void;
Defined in: packages/sqlite-wasm/src/CApi.ts:2895
Makes an application-defined function fail with a result code instead of SQLITE_ERROR, and with the code's default message when no result was set. Call it after sqlite3_result_error, which resets the code to SQLITE_ERROR.
Wasm type v(ii). Signature ["sqlite3_result_error_code", undefined, "sqlite3_context*", "int"] from SQLite's table.