FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use default DB in InfluxDBClient.write. by bgusach · Pull Request #602 · influxdata/influxdb-python · GitHub

This repository was archived by the owner on Oct 29, 2024. It is now read-only.
/ influxdb-python Public archive

Use default DB in InfluxDBClient.write. - #602

Open
bgusach wants to merge 2 commits into
influxdata:masterfrom
bgusach:master
Open

Use default DB in InfluxDBClient.write.#602
bgusach wants to merge 2 commits into
influxdata:masterfrom
bgusach:master

Conversation

bgusach commented Jul 3, 2018

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

A better approach would be to collect params inside write(), as was done for write_points() in 7fae65f

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL