class Sequel::SQL::AliasedExpression

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

Represents an aliasing of an expression to a given alias.


Public Class

  1. new

Public Instance

  1. alias
  2. columns
  3. expression


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