simple_db

Crates.iosimple_db
lib.rssimple_db
version0.1.1
sourcesrc
created_at2024-11-29 22:04:52.854469
updated_at2024-11-29 22:17:07.204333
descriptionsimple key value data base
homepagehttps://github.com/AnasDEV2005/brudb
repositoryhttps://github.com/AnasDEV2005/brudb
max_upload_size
id1466089
size3,875
(AnasDEV2005)

documentation

README

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
Commit count: 16

cargo fmt