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

Support database creation via REST API and CLI #25640

Open
hiltontj opened this issue Dec 10, 2024 · 0 comments
Open

Support database creation via REST API and CLI #25640

hiltontj opened this issue Dec 10, 2024 · 0 comments
Labels

Comments

@hiltontj
Copy link
Contributor

hiltontj commented Dec 10, 2024

Problem statement

Currently, influxdb3 only supports database creation by performing a write via one of the write APIs.

This is useful and allows quick time-to-awesome; however, there may be users that would like to create their databases explicitly via a REST API or CLI command.

Proposed solution

Add the following REST API:

POST /api/v3/configure/database

{"name": <database name>}

As well as a CLI command:

influxdb3 database create --name <database name>

Additional requirements

  • Utilize the WAL to ensure the catalog operation for creating the database is durable
  • Abide by the limitations on the number of databases that are allowed

Alternatives considered

N/A

Additional context

Recently, we added support to delete databases in #25523. The changes needed here will be very similar to those made for that issue (#25549).

@hiltontj hiltontj added the v3 label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant