influxdata / influxdata/influxdb
Support parameterized queries in the `influxdb3 query` CLI
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
The purpose of this issue is to support parameterized queries in the `influxdb3 query` command.
First, we need to determine how parameters would be passed as part of the CLI command, i.e., via argumets:
```
influxdb3 query --param
```
or via a file, e.g.,
```
influxdb3 query --param-file my_params.json
```
We need to consider that parameters can have one of a few primitive types (string, integer, unsigned integer, float, or bool).
### Additional context
#24804 and #24806 gave the ability to add parameterized query support via the HTTP API as well as `influxdb3_client`.
Contributor guide
Research direction
Start with the implementation and entry point for the `influxdb3 query` CLI, then review #24804 and #24806 for the existing parameterized-query behavior. Determine and document the CLI parameter interface and handling for string, integer, unsigned integer, float, and bool values; done means the chosen interface is implemented and covered by query behavior tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100