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
1296 def initialize(constant)
1297   @constant = constant
1298   freeze
1299 end