2 releases

0.1.1 Nov 29, 2024
0.1.0 Nov 29, 2024

#1664 in Database interfaces

Download history 200/week @ 2024-11-25 61/week @ 2024-12-02 31/week @ 2024-12-09

292 downloads per month

Apache-2.0

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

No runtime deps