Class: QueryBuilder::CQL::Contexts::Role
- Defined in:
- lib/query_builder/cql/contexts/role.rb
Overview
Describes the Cassandra users role
Instance Method Summary collapse
-
#alter(password) ⇒ QueryBuilder::Statements::AlterRole
Builds the ‘ALTER ROLE’ CQL statement with password.
-
#create ⇒ QueryBuilder::Statements::CreateRole
Builds the ‘CREATE ROLE’ CQL statement.
-
#drop ⇒ QueryBuilder::Statements::DropRole
Builds the ‘DROP ROLE’ CQL statement.
-
#to_s ⇒ String
Returns the full name of the type.
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 |
#create ⇒ QueryBuilder::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 |
#drop ⇒ QueryBuilder::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_s ⇒ String
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 |