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

function sqlite3_result_text(
  deps: SqliteWasmDep,
): (
  context: SqliteContextPtr,
  value: 0 | WasmPtr,
  n: number,
  destructor: SqliteDestructor,
) => void;

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

Sets an application-defined function's result to UTF-8 text of n bytes, or up to its NUL terminator when n is negative. A NULL address sets SQL NULL, as for sqlite3_bind_text.

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

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