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

function sqlite3_open(
  deps: SqliteWasmDep,
): (filename: CStringPtr, ppDb: WasmPtr) => SqliteResultCode;

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

Opens a database connection for reading and writing, creating the database when it does not exist, with the default VFS. SQLite writes a handle even when opening fails, except when out of memory, and that handle must be closed.

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

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