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