Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Synchronous IDBMirrorVFS#250

Unanswered
simc asked this question inQ&A
Feb 6, 2025· 1 comments· 2 replies
Discussion options

Hey! Would it be possible to create a version of the IDBMirrorVFS that works with a synchronous SQLite build?
Essentially a MemoryVFS with persistence?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

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.

You must be logged in to vote
2 replies
@simc
Comment options

Thanks that helps a lot. A single connection is enough I'll manually sync the different tabs.

@danielwhitedev
Comment options

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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@simc@rhashimoto@danielwhitedev

[8]ページ先頭

©2009-2025 Movatter.jp