Class Sequel::SQL::AliasedExpression
In: lib/sequel_core/sql.rb
Parent: SpecificExpression

Represents an aliasing of an expression/column to a given name.

Methods

new   to_s  

Attributes

aliaz  [R]  The alias to use for the expression, not alias since that is a keyword in ruby.
expression  [R]  The expression to alias

Public Class methods

Create an object with the given expression and alias.

[Source]

     # File lib/sequel_core/sql.rb, line 392
392:       def initialize(expression, aliaz)
393:         @expression, @aliaz = expression, aliaz
394:       end

Public Instance methods

Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.

[Source]

     # File lib/sequel_core/sql.rb, line 398
398:       def to_s(ds)
399:         ds.aliased_expression_sql(self)
400:       end

[Validate]