instance method
apply_start_limit
Ruby on Rails 8.0.4
Since v6.0.6 PrivateSignature
apply_start_limit(relation, cursor, start, batch_orders)
No documentation comment.
Parameters
-
relationreq -
cursorreq -
startreq -
batch_ordersreq
Source
# File activerecord/lib/active_record/relation/batches.rb, line 334
def apply_start_limit(relation, cursor, start, batch_orders)
operators = batch_orders.map do |_column, order|
order == :desc ? :lteq : :gteq
end
batch_condition(relation, cursor, start, operators)
end
Defined in activerecord/lib/active_record/relation/batches.rb line 334
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Batches