class Sequel::SQL::Cast

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

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

Methods

Public Class

  1. new

Public Instance

  1. expr
  2. type

Attributes

expr [R]

The expression to cast

type [R]

The type to which to cast the expression

Public Class methods

new(expr, type)

Set the expression and type for the cast

[show source]
     # File lib/sequel/sql.rb
1241 def initialize(expr, type)
1242   @expr = expr
1243   @type = type
1244   freeze
1245 end