| Crates.io | zapdb-cli |
| lib.rs | zapdb-cli |
| version | 1.0.0 |
| created_at | 2025-01-03 20:39:35.820257+00 |
| updated_at | 2025-01-06 16:32:39.637765+00 |
| description | Zapdb shell interface |
| homepage | |
| repository | https://github.com/Smartlinuxcoder/zapdb-cli |
| max_upload_size | |
| id | 1502854 |
| size | 61,214 |
A shell for interacting with ZapDB, a simple in-memory database. This shell allows you to create tables, insert records, query data, and save the database to disk.
cargo install zapdb-clizapdb-cliStart the CLI by running zapdb-cli. You'll be greeted with an interactive shell:
create_table <table_name> <column1:type> ...
Create a new table with specified columns and their types.
Types: string, int
Example: create_table users name:string age:int
insert <table> <column1=value1> ...
Insert a new record into a table.
Example: insert users name=Alice age=25
select <table>
Display all records from a table with color-coded value types:
save <filename>
Save the current database state to a file.
Example: save johnDatabase.zap
load <filename>
Load a previously saved database.
Example: load dataThatIsSavedToDisk.zap
echo <text>
Print text to the console
exit
Exit the shell
Project shared under the GNU GPL V3 License.