Sha256: 202b869d0353b45eb159318814315c5b6bffb54f8e0b9ae07b1b493c5c269a54

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'ALTER TYPE ... RENAME' CQL3 statement
    #
    class RenameField < Base

      attribute :name, required: :true

      # Builds the statement
      #
      # @return [String]
      #
      def to_s
        cql["ALTER TYPE", context.type.to_s, "RENAME", context.name, "TO", name]
      end

    end # class RenameField

  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/rename_field.rb
query_builder-0.0.3 lib/query_builder/cql/statements/rename_field.rb
query_builder-0.0.2 lib/query_builder/cql/statements/rename_field.rb
query_builder-0.0.1 lib/query_builder/cql/statements/rename_field.rb