class QueryBuilder::CQL::Contexts::Function
Describes the Cassandra user-defined function
Public Instance Methods
create(language, body)
click to toggle source
Builds the ‘CREATE FUNCTION’ CQL
statement
@param [#to_s] language @param [#to_s] body
@return [QueryBuilder::Statements::CreateFunction]
# 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()
click to toggle source
Builds the ‘DROP FUNCTION’ CQL
statement
@return [QueryBuilder::Statements::DropFunction]
# File lib/query_builder/cql/contexts/function.rb, line 38 def drop Statements::DropFunction.new(context: self) end
to_s()
click to toggle source
Returns the full name of the function
@return [String]
# File lib/query_builder/cql/contexts/function.rb, line 18 def to_s [keyspace, name].join(".") end