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

Add a "list" databases sub-command to the CLI #25706

Open
peterbarnett03 opened this issue Dec 23, 2024 · 0 comments
Open

Add a "list" databases sub-command to the CLI #25706

peterbarnett03 opened this issue Dec 23, 2024 · 0 comments

Comments

@peterbarnett03
Copy link
Contributor

Use case:
Knowing what database you're working with is critical to any CLI input, given reading/writing/editing all require knowing its name. However, it can be easily forgotten with no way to discover it again; you can use influxql to show databases, but it requires you entering garbage input for --dbname, which isn't a good practice, plus FlightSQL (default) doesn't currently support a show databases command.

Proposal:
Add a influxdb3 database list sub-command to the CLI which outputs the current database names.

Desired behaviour:

$ influxdb3 database list
Databases
---
field_data
sensor_data

$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant