Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
io @ 66bf16d gh-pages chkt Jan 16, 2017
src Update to hyper 0.12 Oct 15, 2018
tests
.gitignore The very begining Jul 30, 2015
.gitmodules Gh-pages submodule Sep 11, 2015
.travis.yml Fix, system tests Sep 24, 2015
Cargo.toml Update base64 and bump version Nov 3, 2018
README.md Update Readme Oct 15, 2018
TODO.md Support for InfluxDB@0.9.3 write syntax Sep 11, 2015
clippy.toml Make clippy happy Oct 24, 2017

README.md

influent.rs

Build Status crates.io

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