24 releases (5 stable)

2.0.0 Oct 12, 2021
1.2.0 Apr 22, 2021
1.0.0 Feb 22, 2021
0.13.0 Jun 13, 2020
0.4.1 Sep 30, 2016

#104 in Database interfaces

Download history 13/week @ 2021-06-30 18/week @ 2021-07-07 41/week @ 2021-07-14 11/week @ 2021-07-21 72/week @ 2021-07-28 35/week @ 2021-08-04 33/week @ 2021-08-11 3/week @ 2021-08-18 11/week @ 2021-08-25 18/week @ 2021-09-01 30/week @ 2021-09-08 88/week @ 2021-09-15 29/week @ 2021-09-22 60/week @ 2021-09-29 68/week @ 2021-10-06 52/week @ 2021-10-13

160 downloads per month
Used in scaphandre

BSD-3-Clause

20KB
549 lines

This is a Rust client for Warp10 Geo/time series DB

Crates.io LICENSE

Features

At the moment, we support writing to warp10.

Reading support should come at some point.

Example

extern crate time;
extern crate warp10;

fn warp10_post() -> std::result::Result<warp10::Warp10Response, warp10::Error> {
    let client = warp10::Client::new("http://localhost:8080/")?;
    let writer = client.get_writer("my_write_token".to_string());
    let res    = writer.post_sync(vec![
        warp10::Data::new(
            time::OffsetDateTime::now_utc(),
            Some(warp10::GeoValue::new(42.66, 62.18, Some(10))),
            "test data name 2".to_string(),
            vec![
                warp10::Label::new("label 1 name", "label 1 value"),
                warp10::Label::new("label 2 name", "label 2 value")
            ],
            warp10::Value::String("Test warp10 awesome value".to_string())
        )
    ])?;
    Ok(res)
}

fn main() {
    println!("{:?}", warp10_post());
}

Dependencies

~16MB
~344K SLoC