class Sequel::SQL::Cast

Represents a cast of an SQL expression to a specific type.

Attributes

expr[R]

The expression to cast

type[R]

The type to which to cast the expression

Public Class Methods

new(expr, type) click to toggle source

Set the expression and type for the cast

# File lib/sequel/sql.rb, line 1240
def initialize(expr, type)
  @expr = expr
  @type = type
  freeze
end