- Notifications
You must be signed in to change notification settings - Fork83
-
Hey! Would it be possible to create a version of the IDBMirrorVFS that works with a synchronous SQLite build? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 2 replies
-
It is possible, but how difficult it is depends on what you want exactly. IDBMirrorVFS isn't just MemoryAsyncVFS with persistence because it also allows multiple connections. Creating a synchronous version of IDBMirrorVFS that supports multiple connectionscould be done with theretry idea thatOPFSCoopSyncVFS uses...but that's a tricky change to code. If all you actually want is MemoryVFS with persistence - with only one connection and durability not guaranteed - then that is a much simpler task. It is so much simpler that I would probably start from scratch instead of starting with IDBMirrorVFS and ripping things out. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks that helps a lot. A single connection is enough I'll manually sync the different tabs. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I've been trying to build something similar but couldn't get it to work (probably because I've never written a VFS before). I only need a single connection but cannot use the asynchronous version. |
BetaWas this translation helpful?Give feedback.