Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gems/click_house-client/lib/click_house/client/query_like.rb')
-rw-r--r--gems/click_house-client/lib/click_house/client/query_like.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/gems/click_house-client/lib/click_house/client/query_like.rb b/gems/click_house-client/lib/click_house/client/query_like.rb
new file mode 100644
index 00000000000..9e9ee46a338
--- /dev/null
+++ b/gems/click_house-client/lib/click_house/client/query_like.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module ClickHouse
+ module Client
+ class QueryLike
+ # Build a SQL string that can be executed on a ClickHouse database.
+ def to_sql
+ raise NotImplementedError
+ end
+
+ # Redacted version of the SQL query generated by the to_sql method where the
+ # placeholders are stripped. These queries are meant to be exported to external
+ # log aggregation systems.
+ def to_redacted_sql(bind_index_manager = BindIndexManager.new)
+ raise NotImplementedError
+ end
+ end
+ end
+end