gusutabopb / aioinflux

Asynchronous Python client for InfluxDB
MIT License
159 stars 31 forks source link

Added precision to 'write' request #30

Open aratz-lasa opened 4 years ago

aratz-lasa commented 4 years ago

I have implemented the precision parameter, as InfluxDB API reference contains a precision parameter.

The only thing is that I have not been able to setup the testing environment to check it works correctly. All the tests except test_statement_error pass.

Hope it helps! Your library is very useful, thank you!

Tries to resolve #25

codecov-io commented 4 years ago

Codecov Report

Merging #30 into master will decrease coverage by 0.17%. The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
- Coverage   96.51%   96.34%   -0.18%     
==========================================
  Files           9        9              
  Lines         545      547       +2     
==========================================
+ Hits          526      527       +1     
- Misses         19       20       +1     
Impacted Files Coverage Δ
aioinflux/client.py 93.63% <50.00%> (-0.41%) :arrow_down:

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 b318662...859c305. Read the comment docs.

claashk commented 3 years ago

I would like to use this feature, too. Is there anything I could do help finalizing this PR ?

ph4z commented 3 years ago

i'd like to use this too, especially because is mentioned in the official optimization documentation: https://docs.influxdata.com/influxdb/cloud/write-data/best-practices/optimize-writes/#use-the-coarsest-time-precision-possible