Skip to content

rklaehn/sqlite-vfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlite-vfs

Build SQLite virtual file systems (VFS) by implementing a simple Rust trait.

Originally copied from https://github.com/rkusa/sqlite-vfs , but modified to be wasm compatible.

  • Most things from sqlite VFS are exposed, so e.g. you can use a wasm specific way to get randomness

  • No types from std that are not available from wasm, such as std::path::Path, are used

  • Types are kept low level (e.g. CStr). Error codes are just from sqlite-sys.

An example implementing an in memory vfs is provided. You can run it to see what io ops sqlite performs and how the IO ops change depending on the sqlite configuration parameters such as page size and journal mode:

RUST_LOG=debug cargo run --example mem

About

Wasm compatible sqlite vfs for use with rusqlite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages