I'm using influxdb-ruby 0.2.2 and can't seem to run queries that aren't wrapped in db.query(...).
$ influxdb-cli -u admin -p admin -d graphite --pretty --time-precision=ms
Connecting to {"host"=>"localhost", "port"=>8086, "username"=>"admin", "password"=>"admin", "database"=>"graphite", "ssl"=>false, "time_precision"=>"ms", "pretty"=>"pretty"}
✔ ready
[1] pry(main)> SELECT * FROM /.*/ LIMIT 1
NoMethodError: undefined method `time_precision' for #<InfluxDB::Client:0x007fda9581a548>
from /Users/grol/.gem/ruby/2.2.0/gems/influxdb-cli-0.1.4/bin/influxdb-cli:71:in `block in <top (required)>'
[1] pry(main)> db.query('SELECT * FROM /.*/ LIMIT 1')
=> [
[ 0] {
"name" => "foo",
"tags" => nil,
"values" => [
[0] {
"time" => "2015-09-09T01:29:44Z",
"value" => 1
}
]
},
...
I'm using influxdb-ruby 0.2.2 and can't seem to run queries that aren't wrapped in
db.query(...).📌 #14