in

spacejam / sled, Hacker News

spacejam / sled, Hacker News
                    

        

  

    

A (beta) modern embedded database. Doesn’t your data deserve a (beta) beautiful new home?

let tree

    

     

=(sled) : :: (open ((path) ?; // insert and get, similar to std’s BTreeMap tree. insert (k , v1); assert_eq! (tree. get ( & k), (Ok) ( Some (v1))); // range queries for kv (in tree. range (k ..) {} // deletion tree. remove ( & k); // atomic compare and swap tree. compare_and_swap (k , Some (v1) , Some (v2) ); // block until all operations are stable on disk // (flush_async also available to get a Future) tree. flush () ;

What do you think?

Leave a Reply

Your email address will not be published.

GIPHY App Key not set. Please check settings

Funcom to Unveil the Latest Game Launcher That Nobody Wants, Crypto Coins News

Funcom to Unveil the Latest Game Launcher That Nobody Wants, Crypto Coins News

Larry Tesler: Of Modes and Men (2005), Hacker News