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

function sqlite3_open_v2(
  deps: SqliteWasmDep,
): (
  filename: CStringPtr,
  ppDb: WasmPtr,
  flags: number,
  zVfs: 0 | CStringPtr,
) => SqliteResultCode;

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

Opens a database connection. SQLite writes a handle even when opening fails, except when out of memory, and that handle must be closed.

Wasm type i(iiii). Signature ["sqlite3_open_v2", "int", "string", "*", "int", "string"] from SQLite's table.

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