Module: Sequel::SQL::AliasMethods

Included in:
ComplexExpression, GenericComplexExpression, GenericExpression, String, Symbol
Defined in:
lib/sequel/lib/sequel/sql.rb

Overview

Methods that create aliased identifiers

Instance Method Summary collapse

Instance Method Details

#as(aliaz) ⇒ Object

Create an SQL column alias of the receiving column or expression to the given alias.



131
132
133
# File 'lib/sequel/lib/sequel/sql.rb', line 131

def as(aliaz)
  AliasedExpression.new(self, aliaz)
end