colonDB | simpleDB with multiple columns support (database file store)
Checkout main folder for simple key value store.
Make sure you clone this repo inside the directory you write in the cargo.toml's [dependencies] simple_db = ...
May still contain issues, havent tested enough.
usage
I suggest typing in the first row, which will be used as headers to find stuff based on column headers, in the .txt file before dealing with data.
use ColonDB;
Methods:
find save file, or create one
let mut database = find_database;
Make sure to .to_string() input values.
Check example.
add item or row
database.append_row_to_db;
database.insert_item_into_db;
database.insert_item_into_db;
append a column
db.append_column;
select a range from the db (0 to total number of rows, vector with column names)
let newdb = database.select_data;
get item by key, column
println!
delete a row
database.delete_row;
display database in terminal
newdb.print_database;