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

function sqlite3_vfs_register(
  deps: SqliteWasmDep,
): (vfs: SqliteVfsPtr, makeDflt: number) => SqliteResultCode;

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

Registers a VFS, optionally as the default. The struct and its name must outlive the registration.

Wasm type i(ii). Signature ["sqlite3_vfs_register", "int", "sqlite3_vfs*", "int"] from SQLite's table.

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