Skip to content

Commit

Permalink
Merge pull request #195 from rhashimoto/update-hello-demo
Browse files Browse the repository at this point in the history
Add IDBMirrorVFS to hello demo.
  • Loading branch information
rhashimoto authored Jul 23, 2024
2 parents 100eea7 + e635e31 commit f1ab3d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demo/hello/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ import SQLiteESMFactory from '../../dist/wa-sqlite-async.mjs';
// asynchronous VFS requires an asynchronous build, and an VFS using
// FileSystemSyncAccessHandle (generally any OPFS VFS) will run only
// in a Worker.
//
// Note that certain VFS classes cannot read each others' databases, e.g.
// IDBBatchAtomicVFS and IDBMirrorVFS, OPFSPermutedVFS and any other OPFS
// VFS. If you change this demo to use a different VFS, you may need to
// clear the appropriate storage for things to work.
import { IDBBatchAtomicVFS as MyVFS } from '../../src/examples/IDBBatchAtomicVFS.js';
// import { OPFSAnyContextVFS as MyVFS } from '../../src/examples/OPFSAnyContextVFS.js';
// import { IDBMirrorVFS as MyVFS } from '../../src/examples/IDBMirrorVFS.js';
// import { AccessHandlePoolVFS as MyVFS } from '../src/examples/AccessHandlePoolVFS.js';
// import { OPFSAdaptiveVFS as MyVFS } from '../src/examples/OPFSAdaptiveVFS.js';
// import { OPFSAnyContextVFS as MyVFS } from '../../src/examples/OPFSAnyContextVFS.js';
// import { OPFSCoopSyncVFS as MyVFS } from '../src/examples/OPFSCoopSyncVFS.js';
// import { OPFSPermutedVFS as MyVFS } from '../src/examples/OPFSPermutedVFS.js';

Expand Down

0 comments on commit f1ab3d5

Please sign in to comment.