module QueryBuilder::CQL::Modifiers::IfNotExists
Provides IF NOT EXISTS clauses for statements
Public Instance Methods
if_not_exists()
click to toggle source
Adds IF NOT EXISTS clause to the statement
@return [QueryBuilder::Core::Statement] updated statement
# File lib/query_builder/cql/modifiers/if_not_exists.rb, line 15 def if_not_exists self << Clause.new end
Private Instance Methods
maybe_if()
click to toggle source
# File lib/query_builder/cql/modifiers/if_not_exists.rb, line 21 def maybe_if list = clauses(:if) ["IF", list.sort.join(" AND ")] if list.any? end