|
@@ -6,7 +6,6 @@ module Blazer
|
|
|
rows = []
|
|
|
error = nil
|
|
|
|
|
|
- drill = ::Drill.new(url: settings["url"])
|
|
|
begin
|
|
|
# remove trailing semicolon
|
|
|
response = drill.query(statement.sub(/;\s*\z/, ""))
|
|
@@ -18,6 +17,12 @@ module Blazer
|
|
|
|
|
|
[columns, rows, error]
|
|
|
end
|
|
|
+
|
|
|
+ private
|
|
|
+
|
|
|
+ def drill
|
|
|
+ @drill ||= ::Drill.new(url: settings["url"])
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
end
|