await open('name', 'implementation').
Supported values for implementation are:
inMemoryLocal: Only stores files in memory without persistence.inMemoryShared: In-memory database, but shared across tabs with a shared worker.indexedDbUnsafeLocal: Store data in IndexedDB, using each tab unisolated access to the database. Because data is just read once on startup, this is not a good file system implementation and prone to data corruption when used across multiple tabs.indexedDbUnsafeWorker: Like local, but in a shared worker.indexedDbShared: Safely store data in IndexedDB with a shared worker. Limited durability guarantees compared to OPFS.opfsWithExternalLocks: Uses the Origin private file system. This uses the experimental readwrite-unsafe mode only available on Chrome.opfsAtomics: OPFS storage, but uses a pair of dedicated workers using shared memory and atomics to syncify requests. This requires COOP + COEP headers.opfsShared: OPFS storage, using a dedicated worker in a shared worker. This is only supported on Firefox.execute in the console to run
SQL on it, e.g:
let db = await open('test', 'opfsWithExternalLocks');
await execute(db, 'create table foo (bar);');