wasm-sqlite
[Experimental] SQLite compiled to WASM with pluggable page storage. (by rkusa)
sqlite-vfs
Build SQLite virtual file systems (VFS) by implementing a simple Rust trait. (by rkusa)
Our great sponsors
wasm-sqlite | sqlite-vfs | |
---|---|---|
1 | 2 | |
47 | 76 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | almost 2 years ago | |
Rust | Rust | |
- | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wasm-sqlite
Posts with mentions or reviews of wasm-sqlite.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-26.
-
Store SQLite in Cloudflare Durable Objects
The whole code can be found here: github.com/rkusa/wasm-sqlite/blob/main/wasm/src/vfs.rs. By reducing all down to the two methods get_page and put_page (to which I get back later in the post), the VFS ended up being a generic VFS for when you want to persist SQLite pages as separate files/objects. Using it anywhere else than a DO would just be a matter of providing a different implementation to those two methods.
sqlite-vfs
Posts with mentions or reviews of sqlite-vfs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-17.
-
Extending SQLite with Rust
You may be able to have something working by implementing a VFS. (https://github.com/rkusa/sqlite-vfs)
-
Store SQLite in Cloudflare Durable Objects
With that, I had enough information to build sqlite-vfs, a Rust library that wraps all the necessary interactions with the C SQLite library and exposes a much simpler Rust trait. I'll not go into the details of this library here.
What are some alternatives?
When comparing wasm-sqlite and sqlite-vfs you can also consider the following projects:
rusqlite - Ergonomic bindings to SQLite for Rust
rusqlite - Ergonomic bindings to SQLite for Rust
wasi-sdk - WASI-enabled WebAssembly C/C++ toolchain
workers-wasi
asyncify - Standalone Asyncify helper for Binaryen
do-sqlite - [Experimental] Persist SQLite in a Cloudflare Durable Object
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
litestream - Streaming replication for SQLite.