Sequel 5.89.0 Released #2271
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.89.0 has been released!
New Features
A query_blocker extension has been added, for blocking queries
inside a block:
To handle concurrency, you can specify a scope for the block:
In some cases, you may want to block queries in general, and only
allow them in specific places. The query blocker extension
supports this:
The alter_table add_primary_key and add_unique_constraint methods
now support a :using_index option on PostgreSQL, to add the
constraint using an existing index, instead of building a new
unique index to enforce the constraint.
A :compare_connections_by_identity Database option is now
supported, which can be set to false to not use compare_by_identity
on hashes keyed by connections. This should only be used to work
around bugs in other libraries or ruby implementations.
Other Improvements
All anonymous classes and modules created by Sequel now have
temporary names set when using Ruby 3.3+. This makes debugging
and introspection easier. Example:
Previous and when running on Ruby < 3.3 Output:
New output when running on Ruby 3.3+:
The connection_validator extension now handles exceptions
raised by Database#valid_connection?, which shouldn't happen, but
would result in the thread/fiber being assigned the connection
permanently in that case.
The mysql2 adapter now handles invalid statement handles when
closing prepared statements. This only affected cases where
you were changing the definition of already prepared statement.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions