API reference › @evolu/sqlite-wasm › OpfsRoot

Defined in: packages/sqlite-wasm/src/SahPool.ts:1175

Access to the OPFS root, which navigator.storage provides in a dedicated worker.

It and the handle interfaces below declare only the part of the File System API the pool uses, which the browser's objects implement, so a test can pass a fake.

Properties

getDirectory

readonly getDirectory: () => Promise<OpfsDirectoryHandle>;

Defined in: packages/sqlite-wasm/src/SahPool.ts:1176