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

Instance Method Details

#ascObject

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

#descObject

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