github influxdb-rs/influxdb-rust v0.2.0
Release v0.2.0

latest releases: v0.7.2, v0.7.1, v0.7.0...
3 years ago

Added

  • Allow GROUP BY queries by providing deserialize_next_tagged to deserialize the group fields (@SafariMonkey in #69)
  • Added Default for series in InfluxDb Response (@SafariMonkey in #67)
  • WriteQuery and ReadQuery now derive Debug and Clone (@jaredwolff in #63)

Changed

  • Replaced failure crate with thiserror crate (@msrd0 in #70)

  • Deserialize series are now deserialized using field names not field order (@SafariMonkey in #62)

  • Due to InfluxDb inconsistencies between versions and ambiguities, Timestamp::Now has been removed. Please calculate the current timestamp since the epoch yourself and use the other available Timestamp values like so:

    use influxdb::{Timestamp};
    use std::time::{SystemTime, UNIX_EPOCH};
    let start = SystemTime::now();
    let since_the_epoch = start
      .duration_since(UNIX_EPOCH)
      .expect("Time went backwards")
      .as_millis();
    let query = Timestamp::Milliseconds(since_the_epoch)
        .into_query("weather")
        .add_field("temperature", 82);
    

Fixed

  • Fixed quotation marks of tag values and escaping of field values (@Robert-Steiner in #68)
  • Fixed improper quoting on tag values when the value was text (@sparky8251 in #64)

Don't miss a new influxdb-rust release

NewReleases is sending notifications on new releases.