Class: QueryBuilder::CQL::Contexts::User
- Defined in:
- lib/query_builder/cql/contexts/user.rb
Overview
Describes the Cassandra user
Instance Method Summary collapse
-
#alter(password) ⇒ QueryBuilder::Statements::AlterUser
Builds the ‘ALTER USER’ CQL statement with password.
-
#create(password) ⇒ QueryBuilder::Statements::CreateUser
Builds the ‘CREATE USER’ CQL statement with password.
-
#drop ⇒ QueryBuilder::Statements::DropUser
Builds the ‘DROP USER’ CQL statement.
-
#to_s ⇒ String
Returns the full name of the type.
Instance Method Details
#alter(password) ⇒ QueryBuilder::Statements::AlterUser
Builds the ‘ALTER USER’ CQL statement with password
27 28 29 |
# File 'lib/query_builder/cql/contexts/user.rb', line 27 def alter(password) Statements::AlterUser.new(context: self).password(password) end |
#create(password) ⇒ QueryBuilder::Statements::CreateUser
Builds the ‘CREATE USER’ CQL statement with password
37 38 39 |
# File 'lib/query_builder/cql/contexts/user.rb', line 37 def create(password) Statements::CreateUser.new(context: self).password(password) end |
#drop ⇒ QueryBuilder::Statements::DropUser
Builds the ‘DROP USER’ CQL statement
45 46 47 |
# File 'lib/query_builder/cql/contexts/user.rb', line 45 def drop Statements::DropUser.new(context: self) end |
#to_s ⇒ String
Returns the full name of the type
17 18 19 |
# File 'lib/query_builder/cql/contexts/user.rb', line 17 def to_s name.to_s end |