Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages