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
1011 def initialize(expression, aliaz, columns=nil)
1012   @expression = expression
1013   @alias = aliaz
1014   @columns = columns
1015   freeze
1016 end