Sequel 5.88.0 Released #2263
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.88.0 has been released!
New Features
A subset_static_cache plugin has been added, for statically caching
subsets of a model class. This is useful for cases where only a
subset of the model class is static. For example, with this code:
The following methods will use the cache and not issue a database
query:
arguments or single integer argument)
The static_cache_cache plugin has been updated to statically cache
these subsets, avoiding a query to get the static values when
cache_subset is called.
On PostgreSQL, column aliases now support data types, which is
useful when selecting from functions returning records, such as
the jsonb_to_record/jsonb_to_recordset function:
Other Improvements
Sequel::Model class-level methods that call dataset methods can now
be overridden by defining singleton methods on the class, and using
super to get the default behavior (similar to how column and
association methods work).
The timestamp migrator now has deterministic behavior when multiple
migrations have the same version, using a lexicographic sort of the
rest of the migration filename to break ties.
Explicit block parameters are now used in some methods, allowing
the test suite to run without warnings when using
-W:strict_unused_block on Ruby 3.4.
A consistent instance variable setting order is now used in the
string_agg extension to avoid shape-related performance warnings.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions