Module: QueryBuilder::CQL::Modifiers::If
- Included in:
- Statements::Delete, Statements::Update
- Defined in:
- lib/query_builder/cql/modifiers/if.rb
Overview
Provides IF clauses for statements
Defined Under Namespace
Classes: Clause
Instance Method Summary collapse
-
#if(options) ⇒ QueryBuilder::Core::Statement
Adds IF clause to the statement.
Instance Method Details
#if(options) ⇒ QueryBuilder::Core::Statement
Adds IF clause to the statement
17 18 19 20 21 |
# File 'lib/query_builder/cql/modifiers/if.rb', line 17 def if() .map { |key, value| Clause.new(column: key, value: value) } .inject(self, :<<) end |