spacejam / sled

the champagne of beta embedded databases
Apache License 2.0
8.09k stars 383 forks source link

VFS #1493

Open BlueHotDog opened 9 months ago

BlueHotDog commented 9 months ago

Use Case:

Browser usage via WASM+OPFS/IDB

Proposed Change:

Is it possible to introduce a way to write externally linked VFS like SQLite provides? What I would like is to a way to provide hooks that'll be implemented in JS to manage the storage

Who Benefits From The Change(s)?

Folks that want to use Sled in a browser context

Alternative Approaches

Another approach might be to bake various implementations right inside Sled as there are performance considerations while implementing it.