module QueryBuilder::CQL::Modifiers::UsingOptions
Provides USING clauses for statements with various options
Public Instance Methods
using(options)
click to toggle source
Adds USING clause to the statement
@param [Hash] options
@return [QueryBuilder::Core::Statement] updated statement
# File lib/query_builder/cql/modifiers/using_options.rb, line 17 def using(options) options .map { |key, value| Clause.new(property: key, value: value) } .inject(self, :<<) end
Private Instance Methods
maybe_using()
click to toggle source
# File lib/query_builder/cql/modifiers/using_options.rb, line 25 def maybe_using list = clauses(:using) ["USING", list.sort.join(" AND ")] if list.any? end