Class Sequel::SQL::AliasedExpression
In: lib/sequel/sql.rb
Parent: Expression

Represents an aliasing of an expression to a given alias.

Methods

new  

External Aliases

aliaz -> alias

Attributes

aliaz  [R]  The alias to use for the expression, not alias since that is a keyword in ruby.
columns  [R]  The columns aliases 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

Create an object with the given expression and alias.

[Source]

      # File lib/sequel/sql.rb, line 1022
1022:       def initialize(expression, aliaz, columns=nil)
1023:         @expression = expression
1024:         @aliaz = aliaz
1025:         @columns = columns
1026:       end

[Validate]