query() public method

Query influxDB
public query ( string $query, array $params = [] ) : influxdb\ResultSet
$query string
$params array
return influxdb\ResultSet
 /**
  *
  */
 public function testQuery()
 {
     $testResultSet = new ResultSet($this->resultData);
     $this->assertEquals($this->db->query('SELECT * FROM test_metric'), $testResultSet);
 }
Esempio n. 2
0
 /**
  * Gets the result from the database (builds the query)
  *
  * @return ResultSet
  */
 public function getResultSet()
 {
     return $this->db->query($this->parseQuery());
 }