influxdata / influxdb-client-swift

InfluxDB (v2+) Client Library for Swift
https://influxdata.github.io/influxdb-client-swift/
MIT License
27 stars 8 forks source link

feat: add support for async/await #49

Closed bednar closed 2 years ago

bednar commented 2 years ago

Proposed Changes

  1. QueryAPI, WriteAPI, DeleteAPI supports async/await
  2. Management APIs supports async/await2.
  3. Added an example: How to use async/await with the InfluxDB client.
  4. Added Swift 5.6 to CI pipeline
  5. Changed supported InfluxDB version from InfluxDB 2.0 to InfluxDB 2.x
  6. Updated Swagger to latest version

Checklist

codecov-commenter commented 2 years ago

Codecov Report

Merging #49 (345995e) into master (da50d69) will increase coverage by 29.48%. The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           master      #49       +/-   ##
===========================================
+ Coverage   51.05%   80.54%   +29.48%     
===========================================
  Files         137       10      -127     
  Lines        8528     1033     -7495     
===========================================
- Hits         4354      832     -3522     
+ Misses       4174      201     -3973     
Impacted Files Coverage Δ
Sources/InfluxDBSwift/DeleteAPI.swift 79.45% <0.00%> (-15.63%) :arrow_down:
Sources/InfluxDBSwift/InfluxDBClient.swift 83.94% <ø> (ø)
Sources/InfluxDBSwift/QueryAPI.swift 70.40% <0.00%> (-16.73%) :arrow_down:
Sources/InfluxDBSwift/WriteAPI.swift 60.94% <0.00%> (-17.09%) :arrow_down:
...DBSwiftApis/Generated/APIs/AuthorizationsAPI.swift
.../InfluxDBSwiftApis/Generated/APIs/BucketsAPI.swift
...es/InfluxDBSwiftApis/Generated/APIs/DBRPsAPI.swift
...s/InfluxDBSwiftApis/Generated/APIs/HealthAPI.swift
...s/InfluxDBSwiftApis/Generated/APIs/LabelsAPI.swift
...xDBSwiftApis/Generated/APIs/OrganizationsAPI.swift
... and 121 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update da50d69...345995e. Read the comment docs.