Module: Veritas::SQL::Generator::Function::String
- Includes:
- Veritas::SQL::Generator::Function
- Included in:
- Relation::Unary
- Defined in:
- lib/veritas/sql/generator/function/string.rb
Overview
Generates an SQL statement for a string function
Constant Summary collapse
- LENGTH =
'LENGTH'.freeze
Constants included from Identifier
Identifier::ESCAPED_QUOTE, Identifier::QUOTE
Constants included from Literal
Literal::ESCAPED_QUOTE, Literal::FALSE, Literal::NULL, Literal::QUOTE, Literal::SEPARATOR, Literal::TIME_SCALE, Literal::TRUE
Instance Method Summary collapse
-
#visit_veritas_function_string_length(length) ⇒ #to_s
private
Visit a Length function.
Methods included from Attribute
Methods included from Identifier
Methods included from Literal
dup_frozen, #visit_class, #visit_date, #visit_date_time, #visit_enumerable, #visit_false_class, #visit_nil_class, #visit_numeric, #visit_string, #visit_time, #visit_true_class
Instance Method Details
#visit_veritas_function_string_length(length) ⇒ #to_s
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Visit a Length function
21 22 23 |
# File 'lib/veritas/sql/generator/function/string.rb', line 21 def visit_veritas_function_string_length(length) unary_prefix_operation_sql(LENGTH, length) end |