andorr / influxdb-client-rs Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When creating a client it would be nice to be able to use a mock version of the client, which upon point insertion would write the serialized lines to stdout or some other file output. This would be very helpful for testing and also debugging of systems that could make sure that their output is correct before populating a database
Currently, there is no difference between float and integer data types when exporting fields values via InfluxDB line protocol. It means, for example, that float 5
and integer 5
will look the same:
myMeasurement floatField=5,integerField=5
As a result, in InfluxDB they both will be treated as floats so won't be as efficient as possible.
InfluxDB documentation says that integer field values should have the i
suffix to be treated as integers eventually:
Signed 64-bit integers.
Trailing i on the number specifies an integer.
See for details: Integer
So I propose to fix integer data type exporting and use the i
suffix in the Line protocol.
The example above with this change will look like this:
myMeasurement floatField=5,integerField=5i
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.