module QueryBuilder::CQL::Modifiers::CalledOnNull

Provides column for CALLED ON NULL statement

@api public

Public Instance Methods

called_on_null() click to toggle source

Adds CALLED ON NULL to the index

@return [QueryBuilder::Core::Statement] updated statement

# File lib/query_builder/cql/modifiers/called_on_null.rb, line 17
def called_on_null
  self << Clause.new
end

Private Instance Methods

maybe_called() click to toggle source
# File lib/query_builder/cql/modifiers/called_on_null.rb, line 23
def maybe_called
  called = clauses(:called).last
  [(called ? called : "RETURNS NULL"), "ON NULL INPUT"].join(" ")
end