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
1241 def initialize(expr, type)
1242   @expr = expr
1243   @type = type
1244   freeze
1245 end