Sha256: 0ba7a25939517c4b921c3f0d6afc1397764bb5a77b8d6823e48cf654f3dca43c

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL::Operators

  # Returns a description for the composite partition key
  #
  # @example
  #   fn = Operators[:cql_composite]
  #   fn[:foo, :bar, :baz]
  #   # => "(foo, bar, baz)"
  #
  # @param [Array<#to_s>] columns List of columns for the composite
  #
  # @return [String]
  #
  def self.cql_composite(*columns)
    "(#{columns.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_composite.rb
query_builder-0.0.3 lib/query_builder/cql/operators/cql_composite.rb
query_builder-0.0.2 lib/query_builder/cql/operators/cql_composite.rb
query_builder-0.0.1 lib/query_builder/cql/operators/cql_composite.rb