Module: Sequel::SQL::OrderMethods
- Included in:
- LiteralString, ComplexExpression, GenericComplexExpression, GenericExpression, Symbol
- Defined in:
- lib/sequel/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).
316 317 318 |
# File 'lib/sequel/lib/sequel/sql.rb', line 316 def asc OrderedExpression.new(self, false) end |
#desc ⇒ Object
Mark the receiving SQL column as sorting in a descending fashion.
311 312 313 |
# File 'lib/sequel/lib/sequel/sql.rb', line 311 def desc OrderedExpression.new(self) end |