module QueryBuilder::CQL::Modifiers::Where
Provides WHERE clauses for statements
Public Instance Methods
where(options)
click to toggle source
Adds WHERE clause to the statement
@param [Hash] options
@return [QueryBuilder::Core::Statement] updated statement
# File lib/query_builder/cql/modifiers/where.rb, line 17 def where(options) options .map { |key, value| Clause.new(column: key, value: value) } .inject(self, :<<) end
Private Instance Methods
maybe_where()
click to toggle source
# File lib/query_builder/cql/modifiers/where.rb, line 25 def maybe_where list = clauses(:where) ["WHERE", list.join(" AND ")] if list.any? end