12 releases

Uses old Rust 2015

0.5.3 Apr 19, 2020
0.5.2 Jul 29, 2019
0.5.1 Nov 3, 2018
0.4.1 Mar 13, 2018
0.2.1 Sep 24, 2015

#341 in Authentication

Download history 13/week @ 2023-12-04 90/week @ 2023-12-11 79/week @ 2023-12-18 2/week @ 2024-01-01 18/week @ 2024-01-08 37/week @ 2024-01-22 7/week @ 2024-01-29 15/week @ 2024-02-05 25/week @ 2024-02-12 66/week @ 2024-02-19 96/week @ 2024-02-26 54/week @ 2024-03-04 54/week @ 2024-03-11 23/week @ 2024-03-18

228 downloads per month
Used in 2 crates

MIT license

24KB
509 lines

influent.rs

Build Status

InfluxDB Rust package

Overview

This is an InfluxDB driver for Rust.

Status

Library is not under active development right now.

PRs are welcome and merged from time to time. If you want to become a collaborator of this library please let me know.

Install

Cargo.toml

[dependencies]
influent = "0.5"

Usage

extern crate influent;

use influent::create_client;
use influent::client::{Client, Credentials};
use influent::measurement::{Measurement, Value};

// prepare client
let credentials = Credentials {
    username: "gobwas",
    password: "xxx",
    database: "mydb"
};
let hosts = vec!["http://localhost:8086"];
let client = create_client(credentials, hosts);

// prepare measurement
let mut measurement = Measurement::new("key");
measurement.add_field("some_field", Value::String("hello"));
measurement.add_tag("some_region", "Moscow");

client.write_one(measurement, None);

Documentation

API documentation placed here.

Compatibility

This is a table of InfluxDB write spec compatibility respectively to Influent version:

InfluxDB Influent
0.9.2 ^0.1.0
0.9.3 ^0.2.0

License

MIT © Sergey Kamardin

Dependencies

~10MB
~197K SLoC