influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

Use default DB in InfluxDBClient.write.

Open bgusach opened this issue 7 years ago • 1 comments

Centralize default parameters in a function, and reuse these defaults in InfluxDBClient._write_points and .query.

bgusach avatar Jul 03 '18 10:07 bgusach

A better approach would be to collect params inside write(), as was done for write_points() in https://github.com/influxdata/influxdb-python/commit/7fae65ff0fcabb998b02d22c136edb19ffd4da7f

Also, write() should get a new database=None argument (like write_points has) that documents the use of connection's default database.

patricktokeeffe avatar Oct 13 '19 20:10 patricktokeeffe