API reference › @evolu/sqlite-wasm › c-api › sqlite3_busy_handler
function sqlite3_busy_handler(
deps: SqliteWasmDep,
): (
db: SqliteDbPtr,
xBusy: 0 | SqliteFunctionPtr,
pArg: 0 | WasmPtr,
) => SqliteResultCode;
Defined in: packages/sqlite-wasm/src/CApi.ts:1270
Sets the connection's only busy handler, replacing any other, including the one sqlite3_busy_timeout sets, or removes it for NULL so a lock fails with SQLITE_BUSY at once. SQLite calls it with pArg and the number of earlier calls for the same lock and retries while it returns non-zero; it must not modify the connection.
Wasm type i(iii). Signature ["sqlite3_busy_handler", "int", "sqlite3*", "funcptr:i(pi)", "*"] from SQLite's table.