You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
- 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:
11
+
12
+
```
13
+
use influxdb::{Timestamp};
14
+
use std::time::{SystemTime, UNIX_EPOCH};
15
+
let start = SystemTime::now();
16
+
let since_the_epoch = start
17
+
.duration_since(UNIX_EPOCH)
18
+
.expect("Time went backwards")
19
+
.as_millis();
20
+
let query = Timestamp::Milliseconds(since_the_epoch)
21
+
.into_query("weather")
22
+
.add_field("temperature", 82);
23
+
```
24
+
25
+
- `WriteQuery` and `ReadQuery` now derive `Debug` and `Clone` ([@jaredwolff](https://github.com/jaredwolff) in [#63](https://github.com/Empty2k12/influxdb-rust/pull/63))
26
+
10
27
## [0.1.0] - 2020-03-17
11
28
12
29
This adds `#[derive(InfluxDbWriteable)]` for Structs, fixes escaping for the line-protocol and improves timestamp handling.
Copy file name to clipboardExpand all lines: README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,7 @@
27
27
</a>
28
28
</p>
29
29
30
-
This library is a work in progress. Although we've been using it in production at [OpenVelo](https://openvelo.org/),
31
-
we've prioritized features that fit our use cases. This means a feature you might need is not implemented
30
+
This library is a work in progress. This means a feature you might need is not implemented
32
31
yet or could be handled better.
33
32
34
33
Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md).
Copy file name to clipboardExpand all lines: influxdb/src/lib.rs
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
-
//! This library is a work in progress. Although we've been using it in production at [OpenVelo](https://openvelo.org/),
2
-
//! we've prioritized features that fit our use cases. This means a feature you might need is not implemented
1
+
//! This library is a work in progress. This means a feature you might need is not implemented
3
2
//! yet or could be handled better.
4
3
//!
5
4
//! Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md).
0 commit comments