Module: Sequel::SQL::AliasMethods
- Included in:
- Dataset, LiteralString, Postgres::HStore, Postgres::JSONArrayBase, Postgres::JSONHashBase, Postgres::PGArray, Postgres::PGRange, Postgres::PGRow::ArrayRow, Postgres::PGRow::HashRow, Blob, ComplexExpression, GenericExpression, 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
255 256 257 |
# File 'lib/sequel/sql.rb', line 255 def as(aliaz, columns=nil) AliasedExpression.new(self, aliaz, columns) end |