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

function sqlite3_overload_function(
  deps: SqliteWasmDep,
): (db: SqliteDbPtr, zFuncName: CStringPtr, nArg: number) => SqliteResultCode;

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

Ensures a global SQL function with this name and argument count exists, creating a placeholder that raises an error when called, so a virtual table's xFindFunction can overload it.

Wasm type i(iii). Signature ["sqlite3_overload_function", "int", "sqlite3*", "string", "int"] from SQLite's table.

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