Sha256: 5f2d0fb15629158c29655725caca2b0f8b17ea1c08a91afa72249f313a953849

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL::Operators

  # Returns the CQL TUPLE definition
  #
  # @example
  #   fn = Operators[:cql_tuple]
  #
  #   fn[:int, :text]
  #   # => "TUPLE<int, text>"
  #
  # @param [Array<#to_s>] types
  #
  # @return [String]
  #
  def self.cql_tuple(*types)
    "TUPLE<#{types.join(", ")}>"
  end

end # module QueryBuilder::CQL::Operators

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
query_builder-0.0.4 lib/query_builder/cql/operators/cql_tuple.rb
query_builder-0.0.3 lib/query_builder/cql/operators/cql_tuple.rb
query_builder-0.0.2 lib/query_builder/cql/operators/cql_tuple.rb
query_builder-0.0.1 lib/query_builder/cql/operators/cql_tuple.rb