daq-tools / influxio

Import and export data into/from InfluxDB.
https://influxio.readthedocs.io/
MIT License
0 stars 0 forks source link

Dask interface: Accept and forward the new `if-exists` query parameter #129

Closed amotl closed 2 weeks ago

amotl commented 2 weeks ago

About

The new if-exists query parameter will be forwarded to Dask's to_sql() method. By default, influxio will use fail.

Details

When targeting the SQLAlchemy database interface, the target table will be created automatically, if it does not exist. The if-exists URL query parameter can be used to configure this behavior. The default value is fail.

Example usage

influxio copy \
    "http://example:token@localhost:8086/testdrive/demo" \
    "crate://crate@localhost:4200/testdrive?table=demo&if-exists=replace"

References

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.06%. Comparing base (fe3281e) to head (5967722).

Files Patch % Lines
influxio/adapter.py 50.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #129 +/- ## ========================================== + Coverage 79.62% 80.06% +0.43% ========================================== Files 12 12 Lines 638 642 +4 ========================================== + Hits 508 514 +6 + Misses 130 128 -2 ``` | [Flag](https://app.codecov.io/gh/daq-tools/influxio/pull/129/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/daq-tools/influxio/pull/129/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools) | `80.06% <55.55%> (+0.43%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=daq-tools#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.