Struct influxdb::WriteQuery
source · [−]pub struct WriteQuery { /* private fields */ }
Expand description
Internal Representation of a Write query that has not yet been built
Implementations
Creates a new WriteQuery
Adds a field to the WriteQuery
Examples
use influxdb::{Query, Timestamp};
use influxdb::InfluxDbWriteable;
Timestamp::Nanoseconds(0).into_query("measurement").add_field("field1", 5).build();
Adds a tag to the WriteQuery
Please note that a WriteQuery
requires at least one field. Composing a query with
only tags will result in a failure building the query.
Examples
use influxdb::{Query, Timestamp};
use influxdb::InfluxDbWriteable;
Timestamp::Nanoseconds(0)
.into_query("measurement")
.add_tag("field1", 5); // calling `.build()` now would result in a `Err(Error::InvalidQueryError)`
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WriteQuery
impl Send for WriteQuery
impl Sync for WriteQuery
impl Unpin for WriteQuery
impl UnwindSafe for WriteQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more