Skip to content

Commit 92d358a

Browse files
update
1 parent eb2d466 commit 92d358a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/src/shared/open-db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export async function _openDB(
2121
module.ccall('powersync_init_static', 'int', []);
2222

2323
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' });
24+
// @ts-expect-error The types for this static method are missing upstream
25+
const vfs = await IDBBatchAtomicVFS.create(dbFileName, module, { lockPolicy: 'exclusive' });
2626
sqlite3.vfs_register(vfs, true);
2727

2828
const db = await sqlite3.open_v2(dbFileName);

0 commit comments

Comments
 (0)