query https://docs.rs https://crates.io

General

query is a simplistic single-table database library

Example

```rust // get some data to work with let data = (0..10).collect();

// write the data to disk let mut db = DB::create("test.db", data) .expect("can't create 'test.db'");

// change the data in memory db.itermut() .foreach(|i| *i * 2);

// apply the changes db.apply() .expect("can't update 'test.db'");

// delete the data in memory drop(db);

// read the database from memory let db = DB::load("test.db") .expect("can't read 'test.db'");

// all values have been multiplied by 10 asserteq!(db.tovec(), (0..100).step_by(10).collect()); ```