#vfs #extension #logging #file #virtual #system #shared #control #level

sqlite-plugin

A Rust crate for building a custom SQLite virtual file system (VFS)

5 unstable releases

Uses new Rust 2024

new 0.3.0 May 26, 2025
0.2.0 May 19, 2025
0.1.2 Apr 9, 2025
0.1.1 Apr 9, 2025
0.1.0 Mar 29, 2025

#653 in Filesystem

Download history 188/week @ 2025-03-29 274/week @ 2025-04-05 88/week @ 2025-04-12 118/week @ 2025-04-19 24/week @ 2025-04-26 16/week @ 2025-05-03 19/week @ 2025-05-10 145/week @ 2025-05-17 132/week @ 2025-05-24

314 downloads per month
Used in graft-sqlite

MIT/Apache

195KB
1K SLoC

SQLite Plugin

docs.rs   Build Status   crates.io

sqlite-plugin provides a streamlined and flexible way to implement SQLite virtual file systems (VFS) in Rust. Inspired by sqlite-vfs, it offers a distinct design with key enhancements:

  • Centralized Control: The Vfs trait intercepts all file operations at the VFS level, rather than delegating them directly to file handles. This simplifies shared state management and enables more advanced behaviors.
  • Custom Pragmas: Easily define and handle custom SQLite pragmas to extend database functionality.
  • Integrated Logging: Seamlessly forward logs to SQLite’s built-in logging system for unified diagnostics.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

No runtime deps

~0–1.9MB
~37K SLoC