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, 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
268 269 270 |
# File 'lib/sequel/sql.rb', line 268 def as(aliaz, columns=nil) AliasedExpression.new(self, aliaz, columns) end |