-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: uniform client API #31
Conversation
Codecov Report
@@ Coverage Diff @@
## feat/custom-headers #31 +/- ##
=======================================================
+ Coverage 79.32% 81.35% +2.03%
=======================================================
Files 8 9 +1
Lines 532 574 +42
=======================================================
+ Hits 422 467 +45
+ Misses 95 93 -2
+ Partials 15 14 -1
|
ce77cce
to
450f615
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your PR 👍
There are a few requirements that must be satisfied before we accept the PR:
- Please update
README.md
to new naming
and also:
Co-authored-by: Jakub Bednář <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your PR 👍
There are a few requirements that must be satisfied before we accept the PR:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🍻
* feat: add custom default HTTP headers support * fix: uniform client API (#31) * refactor: change package to influxdb3 * refactor: add query and write methods with options * fix: remove Query method parameter with unclear meaning and no tests Co-authored-by: Jakub Bednář <[email protected]>
Proposed Changes
influx
->influxdb3
Configs
->ClientConfig
HostUrl
->Host
AuthToken
->Token
WriteParams
->WriteOptions
Consistency
removed (not supported by 3.x)Query
method has sibling methodQueryWithOptions
with additional parameter ofQueryOptions
type, which allows to specify database and query type (like eg. in Java client)WriteXXX
methods has variants withWriteXXXWithOptions
with parameter ofWriteOptions
type, which allows to specify database and precision (like eg. in Java client)Checklist