Skip to content

Commit a8fa467

Browse files
committed
Added details on new functionality
1 parent a537346 commit a8fa467

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ c. Deleting data
2626

2727
####Create new database
2828
`CreateDatabaseAsync("<db name>");`
29+
30+
###New Version - 12/19/2015
31+
Added the functionality to query for existing data from InfluxDB
32+
33+
####Query for data points
34+
`await client.QueryDBAsync ("<db name>", "<query">);`
35+
36+
This function uses dynamic object (`ExpandoObject` to be exact), so `var r = await client.QueryDBAsync ("stress", "select * from performance limit 10");` will result in list of objects, where each object has properties with its value set to measument value.
37+
So the result can be used like `r[0].time`. This also opens up a way to have an update mechanism as you can now query for data, change some values/tags etc, and write back. Since Influx uses combination of timestamp, tags as primary key, if you don't change tags, the values will be overwritten.
38+
39+
Also unknown little quirk was Influx's need for . (dot) to treat a number as a number, so non US local code can beak Influx data writes. Thanks to @spamik, now double to string conversion will work in any locale.

0 commit comments

Comments
 (0)