Crates.io | redbcli |
lib.rs | redbcli |
version | 0.1.6 |
source | src |
created_at | 2024-03-11 01:47:37.680497 |
updated_at | 2024-12-09 12:15:42.775305 |
description | RedbCLI is a command-line tool for managing and operating Redb databases. It provides various commands to create, delete, query, and edit database tables. |
homepage | |
repository | https://github.com/jokemanfire/redbcli |
max_upload_size | |
id | 1169110 |
size | 40,286 |
RedbCLI is a command-line tool for managing and operating Redb databases. It provides various commands to create, delete, query, and edit database tables.
Need vim
git clone https://github.com/jokemanfire/redbcli
cd redbcli
cargo build --release
cp target/release/redbcli /usr/local/bin/
redbcli
set /path/to/your/database
use your_table_name
info tables
info key your_key
info table your_table_name
edit
create your_table_name
delete your_table_name
exit
$ redbcli
DB:[/path/to/your/database] TAB:[]
>> set /path/to/your/database
-> set database success!
DB:[/path/to/your/database] TAB:[]
>> use my_table
-> Use table my_table
DB:[/path/to/your/database] TAB:[my_table]
>> info tables
+------------------+
| Tables |
+------------------+
| my_table |
+------------------+
DB:[/path/to/your/database] TAB:[my_table]
>> info key my_key
-> data
{
"my_key": "my_value"
}
DB:[/path/to/your/database] TAB:[my_table]
>> edit
-> Save data to update the database
DB:[/path/to/your/database] TAB:[my_table]
>> create new_table
-> Table created successfully
DB:[/path/to/your/database] TAB:[my_table]
>> delete new_table
-> Table deleted successfully
DB:[/path/to/your/database] TAB:[my_table]
>> exit
-> Exiting ...
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.
For more detailed information, please refer to the source code and documentation.