influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.17k stars 3.51k forks source link

Support for last_cache APIs in the `influxdb3` CLI #25100

Open hiltontj opened 5 days ago

hiltontj commented 5 days ago

This issue follows #25099. Once the APIs to create and delete last caches have been supported in the influxdb3_client, we can add new CLI commands to utilize them with the influxdb3 binary. The CLI commands should reflect the behaviour of the APIs they target.

Creation

Last cache creation can be done with the following command:

influxdb3 last_cache create
  --db=foo
  --table=bar
  --name=bop
  --key-columns=col1,col2
  --val-columns=col3,col4
  --count=5

Deletion

Last cache deletion can be done with the following command:

influxdb3 last_cache delete
  --db=foo
  --table=bar
  --name=bop