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

feat: multiple db support #15

Open
6 tasks
damphat opened this issue Sep 30, 2022 · 0 comments
Open
6 tasks

feat: multiple db support #15

damphat opened this issue Sep 30, 2022 · 0 comments

Comments

@damphat
Copy link
Owner

damphat commented Sep 30, 2022

# list all databases, and mark the current database with the '*'
kvuse
    * default-db
      test-1
      todo-app

# switch to todo-app
kvuse todo-app

TODO

  • kvuse switch the current database
  • kvuse print all database if there no parameter supplied to the kvuse command
  • kvset create the database if it not exists
  • kvclear should also remove database
  • kvlist should print current database name at the top?
  • how to go back to default-db

Questions

  • Q: how to see current database?
  • A: kvuse
  • Q: how to list all databases?
  • A: kvuse
  • Q: how to create database?
  • A: kvuse <db-name>
  • Q: how to delete a database?
  • A: kvuse <db-name> then kvclear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant