Sha256: 079293bf1b0716e371ee91d50c51955318e0a74817356ac638debaf883363a85
Contents?: true
Size: 810 Bytes
Versions: 4
Compression:
Stored size: 810 Bytes
Contents
# encoding: utf-8 module QueryBuilder::CQL module Modifiers # Provides SFUNC clauses for statements # module Sfunc # Adds SFUNC clause to the statement # # @param [#to_s] name # # @return [QueryBuilder::Core::Statement] updated statement # def sfunc(name) self << Clause.new(name: name) end private def maybe_functions clauses(:function).join(" ") end # The clause for adding to a statement # # @api private # class Clause < Base type :function attribute :name, required: true # @private def to_s "SFUNC #{name}" end end # class Clause end # module Sfunc end # module Modifiers end # module QueryBuilder::CQL
Version data entries
4 entries across 4 versions & 1 rubygems