README.md in sequel-batches-1.0.1 vs README.md in sequel-batches-1.1.0
- old
+ new
@@ -42,10 +42,11 @@
options = {
of: 4,
pk: [:project_id, :external_user_id],
start: { project_id: 2, external_user_id: 3 },
finish: { project_id: 5, external_user_id: 70 },
+ order: :desc,
}
Event.where(type: "login").in_batches(options) do |ds|
ds.delete
end
@@ -66,9 +67,12 @@
### start
A hash `{ [column]: <start_value> }` that represents frame start for batch processing. Note that you will get `Sequel::Extensions::Batches::InvalidPKError` in case you provide a hash with wrong keys (ordering matters as well).
### finish
Same as `start` but represents the frame end.
+
+### order
+Specifies the primary key order (can be :asc or :desc). Defaults to :asc.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/sequel-batches.