Skip to content

Commit 309ad4c

Browse files
committed
Bump version to 5.98.0
1 parent 3b2ed84 commit 309ad4c

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== master
1+
=== 5.98.0 (2025-11-01)
22

33
* Make insert_returning_select use RETURNING when using table_select plugin (jeremyevans) (#2339)
44

doc/release_notes/5.98.0.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
= New Features
2+
3+
* A pg_auto_parameterize_duplicate_query_detection extension has
4+
been added. This allows for detection of cases where the same
5+
SQL query (with potentially different parameters) is being sent
6+
to the database with the same callstack. This can detect most N+1
7+
issues when the pg_auto_parameterize extension is used.
8+
9+
To detect duplicate queries in a block of code, you wrap the code:
10+
11+
DB.detect_duplicate_queries{your_code}
12+
13+
If you are using Sequel in a web application, you can do this in
14+
a rack middleware to find N+1 issues in your application. Note that
15+
this may report duplicate queries that you may not consider to be
16+
problems. To ignore those cases, you can use:
17+
18+
DB.ignore_duplicate_queries{your_code}
19+
20+
By default, the extension will raise an exception for duplicate
21+
queries. It's possible to warn instead (handler: :warn) or to have
22+
custom behavior. It's also possible to filter the displayed
23+
backtraces (backtrace_filter: /\A#{Regexp.escape(Dir.pwd)}/).
24+
See the plugin documentation for more details.
25+
26+
* Model#remove_key! has been added to remove a key from the instance's
27+
values. You could previously use values.delete(key), but that
28+
didn't necessarily work correctly when using the split_values plugin.
29+
30+
* Model.any? has been added, which will call any? on the model's dataset
31+
instead of Enumerable#any?. This avoids unexpected behavior when using
32+
the any_not_empty extension.
33+
34+
= Other Improvements
35+
36+
* The split_values plugin now supports eager loading associations that
37+
use join tables (e.g. many_to_many associations).
38+
39+
* The rcte_tree plugin now works correctly when using the split_values
40+
plugin.
41+
42+
* The insert_returning_select plugin now uses RETURNING * if the model
43+
uses SELECT table.* FROM table, allowing it to work better with the
44+
table_select plugin.
45+
46+
* Database#listen in the postgres adapter now ignores all received
47+
notifications after it sends the UNLISTEN statement, so future calls
48+
to #listen do not return notifications from a previous call.
49+
50+
* Sequel now recognizes sqlite:filename and amalgalite:filename
51+
connection strings, treating them like sqlite://filename and
52+
amalgalite://filename.

lib/sequel/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Sequel
66

77
# The minor version of Sequel. Bumped for every non-patch level
88
# release, generally around once a month.
9-
MINOR = 97
9+
MINOR = 98
1010

1111
# The tiny version of Sequel. Usually 0, only bumped for bugfix
1212
# releases that fix regressions from previous versions.

0 commit comments

Comments
 (0)