Class: ClickHouse::Client::QueryLike
- Inherits:
-
Object
- Object
- ClickHouse::Client::QueryLike
- Defined in:
- lib/click_house/client/query_like.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#prepared_placeholders ⇒ Object
Override when placeholders should be supported.
-
#to_redacted_sql(bind_index_manager = BindIndexManager.new) ⇒ Object
Redacted version of the SQL query generated by the to_sql method where the placeholders are stripped.
-
#to_sql ⇒ Object
Build a SQL string that can be executed on a ClickHouse database.
Instance Method Details
#prepared_placeholders ⇒ Object
Override when placeholders should be supported
19 20 21 |
# File 'lib/click_house/client/query_like.rb', line 19 def prepared_placeholders {} end |
#to_redacted_sql(bind_index_manager = BindIndexManager.new) ⇒ Object
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.
14 15 16 |
# File 'lib/click_house/client/query_like.rb', line 14 def to_redacted_sql(bind_index_manager = BindIndexManager.new) raise NotImplementedError end |
#to_sql ⇒ Object
Build a SQL string that can be executed on a ClickHouse database.
7 8 9 |
# File 'lib/click_house/client/query_like.rb', line 7 def to_sql raise NotImplementedError end |