Sha256: ba18fd5e1ac695535c91ceb5062cd039cc10545099547b33b4e3c809ead31603
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
# encoding: utf-8 module QueryBuilder::CQL::Operators # Provides CQL statement from chunks # # @example # fn = Operators[:cql] # fn["USE", "", [], "my_keyspace"] # # => "USE my_keyspace;" # # @param [Array<String, Array<String>>] parts # # @return [String] # def self.cql(*parts) parts .flatten .reject { |item| item.nil? || item.empty? } .join(" ") << ";" end end # module QueryBuilder::CQL::Operators
Version data entries
4 entries across 4 versions & 1 rubygems