class Sequel::SQL::Constant

  1. lib/sequel/sql.rb
Superclass: GenericExpression

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

Methods

Public Class

  1. new

Public Instance

  1. constant

Attributes

constant [R]

The underlying constant related to this object.

Public Class methods

new(constant)

Create a constant with the given value

[show source]
     # File lib/sequel/sql.rb
1293 def initialize(constant)
1294   @constant = constant
1295   freeze
1296 end