Module: Sequel::SQL::OrderMethods
- Included in:
- LiteralString, ComplexExpression, 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).
272 273 274 |
# File 'lib/sequel/sql.rb', line 272 def asc OrderedExpression.new(self, false) end |
#desc ⇒ Object
Mark the receiving SQL column as sorting in a descending fashion.
267 268 269 |
# File 'lib/sequel/sql.rb', line 267 def desc OrderedExpression.new(self) end |