Skip to content

sled-rs/sled-rs.github.io

Repository files navigation

sled

github documentation chat sponsors

A modern embedded database. Written in Rust, usable on servers and phones from any C-compatible language.

let db = sled::open(path)?; // as in fs::open
db.insert(k, v)?;           // as in BTreeMap::insert
db.get(&k)?;                // as in BTreeMap::get
for kv in db.range(k..) {}  // as in BTreeMap::range
db.remove(&k)?;             // as in BTreeMap::remove
drop(db);                   // fsync and close file

Embedded databases are useful in several cases:

  • you want to store data on disk, without facing the complexity of files
  • you want to be simple, without operating an external database
  • you want to be fast, without paying network costs
  • using disk storage as a building block in your system

sled features

references

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published