class Sequel::SQL::AliasedExpression

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

Represents an aliasing of an expression to a given alias.

Methods

Public Class

  1. new

Public Instance

  1. alias
  2. columns
  3. expression

Attributes

alias [R]

The alias to use for the expression.

columns [R]

The columns aliases (derived column list) to use, for when the aliased expression is a record or set of records (such as a dataset).

expression [R]

The expression to alias

Public Class methods

new (expression, aliaz, columns=nil)

Create an object with the given expression, alias, and optional column aliases.

[show source]
# File lib/sequel/sql.rb, line 983
def initialize(expression, aliaz, columns=nil)
  @expression = expression
  @alias = aliaz
  @columns = columns
  freeze
end