[−][src]Module influxdb::query
Used to create queries of type InfluxDbReadQuery
or
InfluxDbWriteQuery
which can be executed in InfluxDB
Examples
use influxdb::query::{InfluxDbQuery, Timestamp}; let write_query = InfluxDbQuery::write_query(Timestamp::NOW, "measurement") .add_field("field1", 5) .add_tag("author", "Gero") .build(); assert!(write_query.is_ok()); let read_query = InfluxDbQuery::raw_read_query("SELECT * FROM weather") .build(); assert!(read_query.is_ok());
Modules
read_query | Read Query Builder returned by InfluxDbQuery::raw_read_query |
write_query | Write Query Builder returned by InfluxDbQuery::write_query |
Enums
QueryType | Internal Enum used to decide if a |
Timestamp |
Traits
InfluxDbQuery |