Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement commands for CLI #7

Open
worthant opened this issue Jan 3, 2024 · 2 comments
Open

Implement commands for CLI #7

worthant opened this issue Jan 3, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@worthant
Copy link
Owner

worthant commented Jan 3, 2024

Proposed Commands for HandyDB

  • set <key> <value>: Sets or updates a value for a given key.
  • get <key>: Retrieves the value associated with a given key.
  • add <key> <value>: Adds a new key-value pair, errors if key exists.
  • append <value>: Appends a value with an auto-generated key.
  • delete <key>: Deletes a key-value pair based on the key.
  • exists <key>: Checks if a key exists in the database.
  • list or keys: Lists all keys in the database.
  • clear: Clears all data from the database.
  • update <key> <value>: Updates the value for an existing key, errors if key doesn't exist.
  • info: Displays information about the database.
  • help: Displays help information about commands.
  • exit or quit: Exits the database CLI.
  • export <filename>: Exports database contents to a file.
  • import <filename>: Imports data from a file into the database.
  • find <pattern>: Searches for keys matching a pattern.
  • history: Shows a history of executed commands (optional).
  • stats: Shows statistics about database usage and performance.
  • rename <old_key> <new_key>: Renames a key.
  • merge <key1> <key2> <new_key>: Merges two keys into a new key.
@worthant worthant self-assigned this Jan 3, 2024
@worthant worthant closed this as completed Jan 3, 2024
@worthant worthant reopened this Jan 3, 2024
@worthant worthant added the enhancement New feature or request label Jan 3, 2024
@worthant
Copy link
Owner Author

worthant commented Jan 7, 2024

изображение
изображение

@worthant
Copy link
Owner Author

worthant commented Jan 7, 2024

изображение
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant