Skip to content

Commit 32be475

Browse files
committed
Update the API to correct parameter name
The parameter name was incorrectly mentioned as dbname
1 parent d1adcce commit 32be475

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/api-documentation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ ports. The below instantiation statements are all equivalent::
1313
from influxdb import InfluxDBClient
1414

1515
# using Http
16-
client = InfluxDBClient(dbname='dbname')
17-
client = InfluxDBClient(host='127.0.0.1', port=8086, dbname='dbname')
18-
client = InfluxDBClient(host='127.0.0.1', port=8086, username='root', password='root', dbname='dbname')
16+
client = InfluxDBClient(database='dbname')
17+
client = InfluxDBClient(host='127.0.0.1', port=8086, database='dbname')
18+
client = InfluxDBClient(host='127.0.0.1', port=8086, username='root', password='root', database='dbname')
1919

2020
# using UDP
21-
client = InfluxDBClient(host='127.0.0.1', dbname='dbname', use_udp=True, udp_port=4444)
21+
client = InfluxDBClient(host='127.0.0.1', database='dbname', use_udp=True, udp_port=4444)
2222

2323
To write pandas DataFrames or to read data into a
2424
pandas DataFrame, use a :py:class:`~influxdb.misc.DataFrameClient` object.

0 commit comments

Comments
 (0)