Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobwas/influent.rs
InfluxDB Rust driver
https://github.com/gobwas/influent.rs
Last synced: 12 days ago
JSON representation
InfluxDB Rust driver
- Host: GitHub
- URL: https://github.com/gobwas/influent.rs
- Owner: gobwas
- Created: 2015-07-30T18:43:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T06:12:19.000Z (over 4 years ago)
- Last Synced: 2024-10-14T12:06:56.342Z (25 days ago)
- Language: Rust
- Homepage: http://gobwas.github.io/influent.rs/influent/index.html
- Size: 5.6 MB
- Stars: 43
- Watchers: 3
- Forks: 28
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-influxdb - influent.rs - InfluxDB Rust driver (Client libraries / Unofficial)
README
# influent.[rs](https://www.rust-lang.org/)
[![Build Status][travis-image]][travis-url] [![crates.io][crates-image]][crates-url]
> [InfluxDB](https://www.influxdata.com/) 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
```toml
[dependencies]
influent = "0.5"
```## Usage
```rust
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](http://gobwas.github.io/influent.rs/influent/index.html).
## Compatibility
This is a table of InfluxDB [write spec](https://influxdb.com/docs/v0.9/write_protocols/write_syntax.html) compatibility respectively to Influent version:
InfluxDB | Influent
---------|---------
`0.9.2` | `^0.1.0`
`0.9.3` | `^0.2.0`## License
MIT © [Sergey Kamardin](https://github.com/gobwas)
[travis-image]: https://travis-ci.org/gobwas/influent.rs.svg?branch=master
[travis-url]: https://travis-ci.org/gobwas/influent.rs
[crates-image]: http://meritbadge.herokuapp.com/influent
[crates-url]: https://crates.io/crates/influent