module QueryBuilder::CQL::Modifiers::WithOptions

Provides WITH OPTIONS clauses for statements

Public Instance Methods

with(options) click to toggle source

Adds WITH OPTIONS clause to the statement

@param [Hash] options

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

# File lib/query_builder/cql/modifiers/with_options.rb, line 17
def with(options)
  self << Clause.new(column: :options, value: options)
end

Private Instance Methods

maybe_with() click to toggle source
# File lib/query_builder/cql/modifiers/with_options.rb, line 23
def maybe_with
  list = clauses(:with)
  ["WITH", list.last] if list.any?
end