Sha256: a1dc5be2a573c2564b315b78a24d5135c43f8357c2a30fa80f85708e173e24a8

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'CREATE TYPE' CQL3 statement
    #
    class CreateType < Base

      include Modifiers::AddField
      include Modifiers::IfNotExists

      # Builds the statement
      #
      # @return [String]
      #
      def to_s
        cql["CREATE TYPE", maybe_if, context.to_s, maybe_fields]
      end

    end # class CreateType

  end # module Statements

end # module QueryBuilder::CQL

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
query_builder-0.0.4 lib/query_builder/cql/statements/create_type.rb
query_builder-0.0.3 lib/query_builder/cql/statements/create_type.rb
query_builder-0.0.2 lib/query_builder/cql/statements/create_type.rb
query_builder-0.0.1 lib/query_builder/cql/statements/create_type.rb