API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_subtype
function sqlite3_result_subtype(
deps: SqliteWasmDep,
): (context: SqliteContextPtr, subtype: number) => void;
Defined in: packages/sqlite-wasm/src/CApi.ts:2864
Sets the subtype of an application-defined function's result, keeping only its low 8 bits. The function must be registered with SQLITE_RESULT_SUBTYPE: without it the subtype might not be set, and a build with SQLITE_STRICT_SUBTYPE, such as this one, fails the function with an error. SQLite's table declares the first parameter as sqlite3_value*, but the C function takes sqlite3_context*.
Wasm type v(ii). Signature ["sqlite3_result_subtype", undefined, "sqlite3_value*", "int"] from SQLite's table.