InfluxCommunity / influxdb3-go

The go package that provides a simple and convenient way to interact with InfluxDB 3.
https://pkg.go.dev/github.com/InfluxCommunity/influxdb3-go
MIT License
21 stars 11 forks source link

feat: write/query #6

Closed Sciator closed 1 year ago

Sciator commented 1 year ago

Proposed Changes

Use flightSQL to query and the influxdb write API to write points and line protocol. Maintain as few external dependencies as possible.

Checklist

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 77.07% and project coverage change: -22.93 :warning:

Comparison is base (dac26c7) 100.00% compared to head (330c229) 77.07%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6 +/- ## ============================================ - Coverage 100.00% 77.07% -22.93% ============================================ Files 1 9 +8 Lines 4 676 +672 ============================================ + Hits 4 521 +517 - Misses 0 138 +138 - Partials 0 17 +17 ``` | [Impacted Files](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io) | Coverage Δ | | |---|---|---| | [influx/query\_iterator.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L3F1ZXJ5X2l0ZXJhdG9yLmdv) | `42.15% <42.15%> (ø)` | | | [influx/reflection.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L3JlZmxlY3Rpb24uZ28=) | `50.00% <50.00%> (ø)` | | | [influx/query.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L3F1ZXJ5Lmdv) | `70.00% <70.00%> (ø)` | | | [influx/writer.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L3dyaXRlci5nbw==) | `70.77% <70.77%> (ø)` | | | [influx/client.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L2NsaWVudC5nbw==) | `88.23% <88.23%> (-11.77%)` | :arrow_down: | | [influx/client\_write.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L2NsaWVudF93cml0ZS5nbw==) | `96.96% <96.96%> (ø)` | | | [influx/error.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L2Vycm9yLmdv) | `100.00% <100.00%> (ø)` | | | [influx/fix\_url.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L2ZpeF91cmwuZ28=) | `100.00% <100.00%> (ø)` | | | [influx/point.go](https://app.codecov.io/gh/bonitoo-io/influxdb3-go/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bonitoo-io#diff-aW5mbHV4L3BvaW50Lmdv) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.