[API reference](https://evolu.dev/docs/api-reference) › [@evolu/sqlite-wasm](https://evolu.dev/docs/api-reference/sqlite-wasm) › [c-api](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api) › sqlite3\_vfs\_register

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

Defined in: [packages/sqlite-wasm/src/CApi.ts:3009](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/CApi.ts#L3009)

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.