influxdb-cxx icon indicating copy to clipboard operation
influxdb-cxx copied to clipboard

Tutorial and examples on how to use APIs

Open pkoosha opened this issue 2 years ago • 3 comments

Hi,

I am trying to use your library to be integrated to my C program. unfortunately I do not see any tutorial on how to use APIs and examples. Could you please refer me to one? Thanks.

pkoosha avatar May 11 '22 16:05 pkoosha

The readme contains examples which should cover basic usage. Please see test/ directory for more.

Let me know, if there's something missing.

offa avatar May 11 '22 18:05 offa

I found some useful examples online but there is not documentation on how to update values or setting retention policy through APIs. If you could add these they would greatly help. Thanks

pkoosha avatar May 31 '22 22:05 pkoosha

Ah, I see. Now, the library supports only features listed in the public interface. Since it's main purpose was write / read, not administration (I guess …), features like retention strategy aren't available (yet).

Do you have some specific use cases or features needed?

offa avatar Jun 01 '22 16:06 offa

There's an API for executing any commands now: https://github.com/offa/influxdb-cxx#execute-cmd

offa avatar Dec 14 '22 20:12 offa