We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2d466 commit 92d358aCopy full SHA for 92d358a
packages/web/src/shared/open-db.ts
@@ -21,8 +21,8 @@ export async function _openDB(
21
module.ccall('powersync_init_static', 'int', []);
22
23
const { IDBBatchAtomicVFS } = await import('@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js');
24
- // @ts-ignore TODO update types
25
- const vfs = await IDBBatchAtomicVFS.create(dbFileName, module, { lockPolicy: 'shared+hint' });
+ // @ts-expect-error The types for this static method are missing upstream
+ const vfs = await IDBBatchAtomicVFS.create(dbFileName, module, { lockPolicy: 'exclusive' });
26
sqlite3.vfs_register(vfs, true);
27
28
const db = await sqlite3.open_v2(dbFileName);
0 commit comments