2 releases
0.1.1 | Nov 29, 2024 |
---|---|
0.1.0 | Nov 29, 2024 |
#1664 in Database interfaces
292 downloads per month
4KB
55 lines
simpleDB | key value database file store
use in main.rs
use simple_db::SimpleDB;
Methods:
find save file, or create one
let mut database = SimpleDB::find_database("db.txt");
You have to .to_string()
input values.
Check example.
add (key, value) pair
database.insert_into_db(key, value);
get value by id (key)
database.get_value_from_db(key)
delete value by key
database.delete_from_db(key)
to access the data (a hashmap)
database.data //... whatever action