class QueryBuilder::CQL::Contexts::Field

Describes the field of Cassandra user-defined type

Public Instance Methods

alter(type) click to toggle source

Builds the ‘ALTER TYPE … ALTER’ CQL statement

@param [#to_s] type

@return [QueryBuilder::Statements::AlterField]

# File lib/query_builder/cql/contexts/field.rb, line 30
def alter(type)
  Statements::AlterField.new(context: self, type: type)
end
create(type) click to toggle source

Builds the ‘ALTER TYPE … ADD’ CQL statement

@param [#to_s] type

@return [QueryBuilder::Statements::CreateField]

# File lib/query_builder/cql/contexts/field.rb, line 20
def create(type)
  Statements::CreateField.new(context: self, type: type)
end
rename(name) click to toggle source

Builds the ‘ALTER TYPE … RENAME’ CQL statement

@param [#to_s] name

@return [QueryBuilder::Statements::RenameField]

# File lib/query_builder/cql/contexts/field.rb, line 40
def rename(name)
  Statements::RenameField.new(context: self, name: name)
end