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 support for parameter binding to built queries #1010

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eranl
Copy link
Contributor

@eranl eranl commented Mar 14, 2025

Pulled up bound parameter support from BoundParameterQuery to Query, so that they can be used with built queries, and added support for that.

Also:

  • Decoupled requiresPost from parameters, as they are unrelated
  • Made InfluxDBService more consistent, by making all query methods use GET, and all postQuery methods use POST

Fixes #1009.

…so that they can be used with built queries, and added support for that.

Decoupled requiresPost from parameters, as they are unrelated.
Made InfluxDBService more consistent, by making all query methods use GET, and all postQuery methods use POST.
@eranl
Copy link
Contributor Author

eranl commented Mar 14, 2025

@majst01, are these failures real? I can't figure out what they mean.

@majst01
Copy link
Collaborator

majst01 commented Mar 16, 2025

There has been no CI build for a long time, so i dont know

@eranl
Copy link
Contributor Author

eranl commented Mar 16, 2025

Ok, figured it out - I introduced an overloading bug while reworking InfluxDBService. Fixed.

@majst01
Copy link
Collaborator

majst01 commented Mar 17, 2025

Nice, can you add the relevant changes to the documentation ?

Improve test
@eranl
Copy link
Contributor Author

eranl commented Mar 17, 2025

can you add the relevant changes to the documentation ?

Done. Also, improved the test a bit.

@majst01
Copy link
Collaborator

majst01 commented Mar 18, 2025

I tend to merge this PR as the very last one before archiving this repo, WDYT ?

@eranl
Copy link
Contributor Author

eranl commented Mar 18, 2025

From my perspective, there's still no viable alternative to InfluxQL v1 (Flux is effectively deprecated, and OSS v3 is in beta), so this library is very much in prime time. Am I missing something?

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

Successfully merging this pull request may close these issues.

Add support for parameter binding to built queries
2 participants