diff --git a/src/InfluxDB/Query/Builder.php b/src/InfluxDB/Query/Builder.php index b91d8f0..c6a4918 100644 --- a/src/InfluxDB/Query/Builder.php +++ b/src/InfluxDB/Query/Builder.php @@ -297,8 +297,9 @@ public function getQuery() */ public function getResultSet() { - return $this->db->query($this->parseQuery()); + return $this->db->query($this->parseQuery(),$this->params ?? []); } + /** * @return string @@ -347,4 +348,15 @@ protected function parseQuery() return $query; } + /** + * Add query string parametr to query + * + * @param array $params + * + * @return $this + */ + public function setQueryStringParameter(array $params){ + $this->params=$params; + return $this; + } }