Class: QueryBuilder::CQL::Contexts::Function
- Defined in:
- lib/query_builder/cql/contexts/function.rb
Overview
Describes the Cassandra user-defined function
Instance Method Summary collapse
-
#create(language, body) ⇒ QueryBuilder::Statements::CreateFunction
Builds the ‘CREATE FUNCTION’ CQL statement.
-
#drop ⇒ QueryBuilder::Statements::DropFunction
Builds the ‘DROP FUNCTION’ CQL statement.
-
#to_s ⇒ String
Returns the full name of the function.
Instance Method Details
#create(language, body) ⇒ QueryBuilder::Statements::CreateFunction
Builds the ‘CREATE FUNCTION’ CQL statement
29 30 31 32 |
# File 'lib/query_builder/cql/contexts/function.rb', line 29 def create(language, body) Statements::CreateFunction .new(context: self, language: language, body: body) end |
#drop ⇒ QueryBuilder::Statements::DropFunction
Builds the ‘DROP FUNCTION’ CQL statement
38 39 40 |
# File 'lib/query_builder/cql/contexts/function.rb', line 38 def drop Statements::DropFunction.new(context: self) end |
#to_s ⇒ String
Returns the full name of the function
18 19 20 |
# File 'lib/query_builder/cql/contexts/function.rb', line 18 def to_s [keyspace, name].join(".") end |