Class: Sequel::SQL::Constant
- Inherits:
-
GenericExpression
- Object
- Expression
- GenericExpression
- Sequel::SQL::Constant
- Defined in:
- lib/sequel/sql.rb
Overview
Represents constants or psuedo-constants (e.g. CURRENT_DATE) in SQL.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(constant) ⇒ Constant
constructor
Create an object with the given table.
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 Expression
attr_reader, comparison_attrs, #eql?, #lit, #sql_literal
Constructor Details
#initialize(constant) ⇒ Constant
Create an object with the given table
581 582 583 |
# File 'lib/sequel/sql.rb', line 581 def initialize(constant) @constant = constant end |