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

Flux DSL librairy for Go #343

Open
jjauzion opened this issue Jul 21, 2022 · 3 comments
Open

Flux DSL librairy for Go #343

jjauzion opened this issue Jul 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@jjauzion
Copy link

Proposal:
It would be really nice to have a Flux DSL librairy for the go client; similarly to what exist for the Java client

Current behavior:
With the current librairy I have to write the query as a string:

result, err := queryAPI.Query(context.Background(), `from(bucket:"my-bucket")|> range(start: -1h) |> filter(fn: (r) => r._measurement == "stat")`)

Desired behavior:
It would be much better if I could chain operator with something like this:

q := queryAPI.Query(context.Background()).Bucket("my-bucket").Range("-1h").Filter("...")
res, err := q.Execute()

Use case:
Every time I need to write queries using the go client

@vlastahajek vlastahajek added the enhancement New feature or request label Jul 21, 2022
@vlastahajek
Copy link
Contributor

Thanks for using this library. Flux DSL is already on in the backlog. This could be added in a few months.

@jjauzion
Copy link
Author

If needed, I can help and contribute ;)

@vlastahajek
Copy link
Contributor

Any PR is welcomed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants