class QueryBuilder::CQL::Contexts::User
Describes the Cassandra user
Public Instance Methods
alter(password)
click to toggle source
Builds the ‘ALTER USER’ CQL
statement with password
@param [#to_s] password
@return [QueryBuilder::Statements::AlterUser]
# File lib/query_builder/cql/contexts/user.rb, line 27 def alter(password) Statements::AlterUser.new(context: self).password(password) end
create(password)
click to toggle source
Builds the ‘CREATE USER’ CQL
statement with password
@param [#to_s] password
@return [QueryBuilder::Statements::CreateUser]
# File lib/query_builder/cql/contexts/user.rb, line 37 def create(password) Statements::CreateUser.new(context: self).password(password) end
drop()
click to toggle source
Builds the ‘DROP USER’ CQL
statement
@return [QueryBuilder::Statements::DropUser]
# File lib/query_builder/cql/contexts/user.rb, line 45 def drop Statements::DropUser.new(context: self) end
to_s()
click to toggle source
Returns the full name of the type
@return [String]
# File lib/query_builder/cql/contexts/user.rb, line 17 def to_s name.to_s end