class QueryBuilder::CQL::Contexts::Type
Describes the Cassandra user-defined type
Public Instance Methods
create()
click to toggle source
Builds the ‘CREATE TYPE’ CQL
statement
@return [QueryBuilder::Statements::CreateType]
# File lib/query_builder/cql/contexts/type.rb, line 36 def create Statements::CreateType.new(context: self) end
drop()
click to toggle source
Builds the ‘DROP TYPE’ CQL
statement
@return [QueryBuilder::Statements::DropType]
# File lib/query_builder/cql/contexts/type.rb, line 44 def drop Statements::DropType.new(context: self) end
field(name)
click to toggle source
Returns the field context
@param [#to_s] name
@return [QueryBuilder::CQL::Contexts::Field]
# File lib/query_builder/cql/contexts/type.rb, line 28 def field(name) Contexts::Field.new(type: self, name: name) end
to_s()
click to toggle source
Returns the full name of the type
@return [String]
# File lib/query_builder/cql/contexts/type.rb, line 18 def to_s [keyspace, name].join(".") end