Skip to content

Commit

Permalink
Bump version to 5.80.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 1, 2024
1 parent e437cef commit 1549236
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=== master
=== 5.80.0 (2024-05-01)

* Support Dataset#skip_locked on MariaDB 10.6+ (simi) (#2150)

Expand Down
40 changes: 40 additions & 0 deletions doc/release_notes/5.80.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
= New Features

* A provenance dataset extension has been added. This extension makes
SQL queries include a comment describing how the dataset was built.
This can make debugging complex cases significantly easier. Here's
a simple example:

DB.extension :provenance

DB[:table].
select(:a).
where{b > 10}.
order(:c).
limit(10)
# SQL:
# SELECT a FROM table WHERE (b > 10) ORDER BY c LIMIT 10 --
# -- Dataset Provenance
# -- Keys:[:from] Source:(eval at bin/sequel:257):2:in `<main>'
# -- Keys:[:select] Source:(eval at bin/sequel:257):3:in `<main>'
# -- Keys:[:where] Source:(eval at bin/sequel:257):4:in `<main>'
# -- Keys:[:order] Source:(eval at bin/sequel:257):5:in `<main>'
# -- Keys:[:limit] Source:(eval at bin/sequel:257):6:in `<main>'

With the above example, it's obvious how the dataset is created, but
but in real applications, where datasets can be built from multiple
files, seeing where each dataset clone was made can be helpful.

The source listed will skip locations in the Ruby standard library
as well as Sequel itself. Other locations can be skipped by
providing a Database :provenance_caller_ignore Regexp option:

DB.opts[:provenance_caller_ignore] = /\/gems\/library_name-/

= Other Improvements

* For dataset methods where Sequel can determine that the return
value would be equivalent to the receiver, Sequel now returns the
receiver. This reduces the number of dataset allocations.

* Sequel now supports Dataset#skip_locked on MariaDB 10.6+.
2 changes: 1 addition & 1 deletion lib/sequel/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Sequel

# The minor version of Sequel. Bumped for every non-patch level
# release, generally around once a month.
MINOR = 79
MINOR = 80

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

0 comments on commit 1549236

Please sign in to comment.