Struct influx_db_client::client::Client [] [src]

pub struct Client { /* fields omitted */ }

The client to influxdb

Methods

impl Client
[src]

[src]

Create a new influxdb client with http

[src]

Create a new influxdb client with https

[src]

Set the read timeout value, unit "s"

[src]

Set the write timeout value, unit "s"

[src]

Change the client's database

[src]

Change the client's user

[src]

Change http to https, but don't leave the read write timeout setting

[src]

View the current db name

[src]

Query whether the corresponding database exists, return bool

[src]

Query the version of the database and return the version number

[src]

Write a point to the database

[src]

Write multiple points to the database

[src]

Query and return data, the data type is Option<Vec<Node>>

[src]

Drop measurement

[src]

Create a new database in InfluxDB.

[src]

Drop a database from InfluxDB.

[src]

Create a new user in InfluxDB.

[src]

Drop a user from InfluxDB.

[src]

Change the password of an existing user.

[src]

Grant cluster administration privileges to a user.

[src]

Revoke cluster administration privileges from a user.

[src]

Grant a privilege on a database to a user. :param privilege: the privilege to grant, one of 'read', 'write' or 'all'. The string is case-insensitive

[src]

Revoke a privilege on a database from a user. :param privilege: the privilege to grant, one of 'read', 'write' or 'all'. The string is case-insensitive

[src]

Create a retention policy for a database. :param duration: the duration of the new retention policy. Durations such as 1h, 90m, 12h, 7d, and 4w, are all supported and mean 1 hour, 90 minutes, 12 hours, 7 day, and 4 weeks, respectively. For infinite retention – meaning the data will never be deleted – use 'INF' for duration. The minimum retention period is 1 hour.

[src]

Drop an existing retention policy for a database.

Trait Implementations

impl Debug for Client
[src]

[src]

Formats the value using the given formatter. Read more

impl Send for Client
[src]

impl Default for Client
[src]

[src]

connecting for default database test and host http://localhost:8086

Auto Trait Implementations

impl Sync for Client