From 1ad91738460f508ba3c36a7568af31ccba6174f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Helfensd=C3=B6rfer?= Date: Sat, 24 Nov 2018 15:03:39 +0100 Subject: [PATCH] Added query builder --- src/InfluxDbFacade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/InfluxDbFacade.php b/src/InfluxDbFacade.php index 14dec25..71ef81d 100644 --- a/src/InfluxDbFacade.php +++ b/src/InfluxDbFacade.php @@ -105,4 +105,14 @@ public static function writePoints( return true; } + + /** + * Get the query builder of the database. + * + * @return \InfluxDb\Query\Builder + */ + public static function getQueryBuilder(): \InfluxDb\Query\Builder + { + return static::getFacadeRoot()->getQueryBuilder(); + } }