Class: ClickHouse::Client::QueryLike

Inherits:
Object
  • Object
show all
Defined in:
lib/click_house/client/query_like.rb

Direct Known Subclasses

Query, QueryBuilder

Instance Method Summary collapse

Instance Method Details

#prepared_placeholdersObject

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.

Raises:

  • (NotImplementedError)


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_sqlObject

Build a SQL string that can be executed on a ClickHouse database.

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/click_house/client/query_like.rb', line 7

def to_sql
  raise NotImplementedError
end