Giter VIP home page Giter VIP logo

influxdb-client-rs's People

Contributors

andorr avatar gwy15 avatar sveinungoverland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

influxdb-client-rs's Issues

Mock client that writes to stdout/file instead of db, for testing/debugging

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

Fix integer data type in InfluxDB Line protocol

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.