Class: QueryBuilder::CQL::Statements::CreateFunction
- Inherits:
-
Base
- Object
- QueryBuilder::Core::Base
- QueryBuilder::Core::Statement
- Base
- QueryBuilder::CQL::Statements::CreateFunction
- Includes:
- Modifiers::AddField, Modifiers::CalledOnNull, Modifiers::IfNotExists, Modifiers::OrReplace, Modifiers::Returns
- Defined in:
- lib/query_builder/cql/statements/create_function.rb
Overview
Describes the ‘CREATE FUNCTION’ CQL3 statement
Instance Attribute Summary
Attributes inherited from QueryBuilder::Core::Base
Instance Method Summary collapse
-
#to_s ⇒ String
Builds the statement.
Methods included from Modifiers::CalledOnNull
Methods included from Modifiers::Returns
Methods included from Modifiers::IfNotExists
Methods included from Modifiers::OrReplace
Methods included from Modifiers::AddField
Methods included from Operators
cql, cql_composite, cql_dec, cql_element, cql_entries, cql_frozen, cql_full, cql_gt, cql_gte, cql_in, cql_inc, cql_keys, cql_list, cql_literal, cql_lt, cql_lte, cql_map, cql_set, cql_token, cql_token_value, cql_ttl, cql_tuple, cql_tuple_value, cql_writetime
Methods inherited from QueryBuilder::Core::Statement
Methods inherited from QueryBuilder::Core::Base
#attribute, attribute, attributes, inherited, #initialize
Constructor Details
This class inherits a constructor from QueryBuilder::Core::Statement
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class QueryBuilder::CQL::Operators
Instance Method Details
#to_s ⇒ String
Builds the statement
26 27 28 29 30 31 32 |
# File 'lib/query_builder/cql/statements/create_function.rb', line 26 def to_s cql[ "CREATE", maybe_replace, "FUNCTION", maybe_if, context.to_s, maybe_fields, maybe_called, maybe_returns, "LANGUAGE", cql_literal[language], "AS", cql_literal[body] ] end |