Module: QueryBuilder::CQL::Modifiers::Where

Included in:
Statements::Delete, Statements::Select, Statements::Update
Defined in:
lib/query_builder/cql/modifiers/where.rb

Overview

Provides WHERE clauses for statements

Defined Under Namespace

Classes: Clause

Instance Method Summary collapse

Instance Method Details

#where(options) ⇒ QueryBuilder::Core::Statement

Adds WHERE clause to the statement

Parameters:

  • options (Hash)

Returns:



17
18
19
20
21
# 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