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
1244 def initialize(expr, type)
1245   @expr = expr
1246   @type = type
1247   freeze
1248 end