Class Sequel::SQL::Cast
In: lib/sequel/sql.rb
Parent: GenericExpression

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

Methods

new  

Attributes

expr  [R]  The expression to cast
type  [R]  The type to which to cast the expression

Public Class methods

Set the expression and type for the cast

[Source]

      # File lib/sequel/sql.rb, line 1179
1179:       def initialize(expr, type)
1180:         @expr = expr
1181:         @type = type
1182:         freeze
1183:       end

[Validate]