Sequel 5.73.0 Released #2084
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sequel 5.73.0 has been released!
New Features
A paged_operations plugin has been added, which adds support for
paged_datasets, paged_update, and paged_delete dataset methods.
This methods are designed to be used on large datasets, to split
a large query into separate smaller queries, to avoid locking the
related database table for a long period of time.
paged_update and paged_delete operate the same as update and delete,
returning the number of rows updated or deleted. paged_datasets yields
one or more datasets representing subsets of the receiver, with the
union of all of those datasets comprising all records in the receiver:
A Dataset#transaction :skip_transaction option is now support to
checkout a connection from the pool without opening a transaction. This
makes it easier to handle cases where a transaction may or not be used
based on configuration/options. Dataset#import and Dataset#paged_each
now both support the :skip_transaction option to skip transactions.
Dataset#full_text_search now supports the to_tsquery: :websearch option
on PostgreSQL 11+, to use the websearch_to_tsquery database function.
The Sequel::MassAssignmentRestriction exception now supports model
and column methods to get provide additional information about the
exception. Additionally, the exception message now includes information
about the model class.
Other Improvements
The ibmdb and jdbc/db2 adapter now both handle disconnect errors
correctly, removing the related connection from the pool.
Dataset#import no longer uses an explicit transaction if given a dataset
value, as in that case, only a single query is used.
The column_encryption plugin no longer uses the base64 library. The
base64 library is moving from the standard library to a bundled gem
in Ruby 3.4, and this avoids having a dependency on it.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions