Class: Sequel::SQL::GenericComplexExpression
- Inherits:
-
ComplexExpression
- Object
- Expression
- ComplexExpression
- Sequel::SQL::GenericComplexExpression
- Includes:
- AliasMethods, BooleanMethods, CastMethods, ComplexExpressionMethods, InequalityMethods, NumericMethods, OrderMethods, StringMethods, SubscriptMethods
- Defined in:
- lib/sequel/lib/sequel/extensions/sql_expr.rb
Overview
The GenericComplexExpression acts like a GenericExpression in terms of methods, but has an internal structure of a ComplexExpression. It is used by Object#sql_expr. Since we don’t know what specific type of object we are dealing with it, we treat it similarly to how we treat symbols or literal strings, allowing many different types of methods.
Constant Summary
Constants inherited from ComplexExpression
ComplexExpression::BITWISE_OPERATORS, ComplexExpression::BOOLEAN_OPERATOR_METHODS, ComplexExpression::INEQUALITY_OPERATORS, ComplexExpression::IS_OPERATORS, ComplexExpression::MATHEMATICAL_OPERATORS, ComplexExpression::N_ARITY_OPERATORS, ComplexExpression::ONE_ARITY_OPERATORS, ComplexExpression::OPERTATOR_INVERSIONS, ComplexExpression::TWO_ARITY_OPERATORS
Instance Attribute Summary
Attributes inherited from ComplexExpression
Method Summary
Methods included from SubscriptMethods
Methods included from StringMethods
Methods included from OrderMethods
Methods included from ComplexExpressionMethods
#extract, #sql_boolean, #sql_number, #sql_string
Methods included from CastMethods
#cast, #cast_numeric, #cast_string
Methods included from BooleanMethods
Methods included from AliasMethods
Methods inherited from ComplexExpression
Methods inherited from Expression
Constructor Details
This class inherits a constructor from Sequel::SQL::ComplexExpression