Class: Sequel::SQL::Constant

Inherits:
GenericExpression show all
Defined in:
lib/sequel/lib/sequel/sql.rb

Overview

Represents constants or psuedo-constants (e.g. CURRENT_DATE) in SQL

Instance Method Summary collapse

Methods included from SubscriptMethods

#sql_subscript

Methods included from StringMethods

#ilike, #like

Methods included from OrderMethods

#asc, #desc

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

#as

Methods inherited from Expression

#lit

Constructor Details

#initialize(constant) ⇒ Constant

Create an object with the given table


532
533
534
# File 'lib/sequel/lib/sequel/sql.rb', line 532

def initialize(constant)
  @constant = constant
end