Module: Sequel::SQL::AliasMethods
- Included in:
- Dataset, LiteralString, Postgres::HStore, Postgres::PGArray, Postgres::PGMultiRange, Postgres::PGRange, Postgres::PGRow::ArrayRow, Postgres::PGRow::HashRow, Blob, ComplexExpression, EscapedLikeExpression, GenericExpression, StringAgg, String, Symbol
- Defined in:
- lib/sequel/sql.rb
Overview
Includes an as method that creates an SQL alias.
Instance Method Summary collapse
- 
  
    
      #as(aliaz, columns = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create an SQL alias ( AliasedExpression) of the receiving column or expression to the given alias.
Instance Method Details
#as(aliaz, columns = nil) ⇒ Object
| 263 264 265 | # File 'lib/sequel/sql.rb', line 263 def as(aliaz, columns=nil) AliasedExpression.new(self, aliaz, columns) end |