API reference › @evolu/sqlite-wasm › c-api › sqlite3_shutdown
function sqlite3_shutdown(deps: SqliteWasmDep): () => SqliteResultCode;
Defined in: packages/sqlite-wasm/src/CApi.ts:758
Deallocates the resources sqlite3_initialize allocated. Every connection must be closed and every other SQLite resource freed first; only the first call after an initialization has an effect. Then initialize the library again with initializeSqliteWasm. sqlite3_initialize alone, or any call that initializes the library itself, such as an open, makes the unix VFS the default again, from which the generator of sqlite3_randomness, when reset or unused since loading, seeds itself with the time and a constant pid instead of RandomBytes, and registers kvvfs again, which traps when :localStorage: is opened.
Wasm type i(). Signature ["sqlite3_shutdown", undefined] from SQLite's
table, with the result corrected: SQLite's table declares no result, but the
C function returns a result code, as the wasm type shows.