orca-zhang / influxdb-cpp

💜 C++ client for InfluxDB.
MIT License
163 stars 83 forks source link
cpp cross-platform header-only influxdb influxdb-cpp no-dependencies

influxdb-cpp

A header-only C++ query & write client for InfluxDB.

license Build Status Build status

Why use influxdb-cpp?

Examples

Before using

Writing example

Query example

Remarks for Windows

Remarks for Special Characters in Password

Return code cheat-sheet

Functions Code Description
send_udp post_http 0 success
send_udp post_http -1 convert host address to network order error
send_udp post_http -2 create socket error
send_udp post_http -3 sendto / connect failed
post_http -6 send buffer error
post_http -7 expect a character but read no more
post_http -8 unexpected characters while parsing chunk length
post_http -9 unexpected characters while parsing new line
post_http -10 unexpected null character
post_http -11 unexpected end

TODO

Misc