[API reference](https://evolu.dev/docs/api-reference) › [@evolu/sqlite-wasm](https://evolu.dev/docs/api-reference/sqlite-wasm) › [c-api](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api) › sqlite3\_result\_subtype

```ts
function sqlite3_result_subtype(
  deps: SqliteWasmDep,
): (context: SqliteContextPtr, subtype: number) => void;
```

Defined in: [packages/sqlite-wasm/src/CApi.ts:2864](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/CApi.ts#L2864)

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.

See https://sqlite.org/c3ref/result_subtype.html.