Hyperdb Cli
HyperDB CLI is a command line interface (CLI) for the HyperDB Server.
Project Details
HyperDB CLI
Author: Afaan Bilal
Introduction 
HyperDB CLI is a command line interface (CLI) for the HyperDB Server.
Run with Docker 
$ docker run --rm -it afaanbilal/hyperdb-cli -a http://host.docker.internal:8765
Connected to http://host.docker.internal:8765
> ?
[HyperDB Client]
COMMANDS:
HELP | ? Print this help message
PING Ping server
VERSION | VER Get server version
HAS [key] Check if there is a value for [key]
GET [key] Get the value for [key]
SET [key] [value] Set the [value] for [key]
DEL [key] Delete the value for [key]
EMPTY Check if the store is empty
ALL Get all stored data
CLEAR Delete all stored data from memory
SAVE Save stored data to disk
RELOAD Reload store from disk
RESET Delete all stored data from memory and disk
QUIT | EXIT Quit
>
Build and Run 
$ cargo run
Connected to http://localhost:8765
> ?
[HyperDB Client]
COMMANDS:
HELP | ? Print this help message
PING Ping server
VERSION | VER Get server version
HAS [key] Check if there is a value for [key]
GET [key] Get the value for [key]
SET [key] [value] Set the [value] for [key]
DEL [key] Delete the value for [key]
EMPTY Check if the store is empty
ALL Get all stored data
CLEAR Delete all stored data from memory
SAVE Save stored data to disk
RELOAD Reload store from disk
RESET Delete all stored data from memory and disk
QUIT | EXIT Quit
>
Contributing
All contributions are welcome. Please create an issue first for any feature request
or bug. Then fork the repository, create a branch and make any changes to fix the bug
or add the feature and create a pull request. That's it!
Thanks!
License
HyperDB CLI is released under the MIT License.
Check out the full license here.
License
MIT License
Copyright (c) 2023 Afaan Bilal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.