API reference › @evolu/sqlite-wasm › c-api › sqlite3_result_int

function sqlite3_result_int(
  deps: SqliteWasmDep,
): (context: SqliteContextPtr, value: number) => void;

Defined in: packages/sqlite-wasm/src/CApi.ts:2742

Sets an application-defined function's result to a 32-bit integer. The wasm boundary converts the number with ToInt32, so a fraction is truncated and a value outside the int32 range wraps silently.

Wasm type v(ii). Signature ["sqlite3_result_int", undefined, "sqlite3_context*", "int"] from SQLite's table.

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