Class: QueryBuilder::CQL::Contexts::Role

Inherits:
Base
  • Object
show all
Defined in:
lib/query_builder/cql/contexts/role.rb

Overview

Describes the Cassandra users role

Instance Method Summary collapse

Instance Method Details

#alter(password) ⇒ QueryBuilder::Statements::AlterRole

Builds the ‘ALTER ROLE’ CQL statement with password



35
36
37
# File 'lib/query_builder/cql/contexts/role.rb', line 35

def alter(password)
  Statements::AlterRole.new(context: self).password(password)
end

#createQueryBuilder::Statements::CreateRole

Builds the ‘CREATE ROLE’ CQL statement



25
26
27
# File 'lib/query_builder/cql/contexts/role.rb', line 25

def create
  Statements::CreateRole.new(context: self)
end

#dropQueryBuilder::Statements::DropRole

Builds the ‘DROP ROLE’ CQL statement



43
44
45
# File 'lib/query_builder/cql/contexts/role.rb', line 43

def drop
  Statements::DropRole.new(context: self)
end

#to_sString

Returns the full name of the type



17
18
19
# File 'lib/query_builder/cql/contexts/role.rb', line 17

def to_s
  name.to_s
end