Module: Sequel::SQL::OrderMethods
- Included in:
- LiteralString, ComplexExpression, GenericComplexExpression, GenericExpression, Symbol
- Defined in:
- lib/sequel/sql.rb
Overview
Methods that create OrderedExpressions, used for sorting by columns or more complex expressions.
Instance Method Summary collapse
-
#asc ⇒ Object
Mark the receiving SQL column as sorting in an ascending fashion (generally a no-op).
-
#desc ⇒ Object
Mark the receiving SQL column as sorting in a descending fashion.
Instance Method Details
#asc ⇒ Object
Mark the receiving SQL column as sorting in an ascending fashion (generally a no-op).
370 371 372 |
# File 'lib/sequel/sql.rb', line 370 def asc OrderedExpression.new(self, false) end |
#desc ⇒ Object
Mark the receiving SQL column as sorting in a descending fashion.
365 366 367 |
# File 'lib/sequel/sql.rb', line 365 def desc OrderedExpression.new(self) end |