Module: Sequel::SQL::OrderMethods
- Included in:
- LiteralString, SpecificExpressionMethods
- Defined in:
- lib/sequel_core/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).
275 276 277 |
# File 'lib/sequel_core/sql.rb', line 275 def asc OrderedExpression.new(self, false) end |
#desc ⇒ Object
Mark the receiving SQL column as sorting in a descending fashion.
270 271 272 |
# File 'lib/sequel_core/sql.rb', line 270 def desc OrderedExpression.new(self) end |