File: 5.81.0.txt

package info (click to toggle)
ruby-sequel 5.97.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,188 kB
  • sloc: ruby: 123,115; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
= New Features

* A temporarily_release_connection Database extension has been added,
  designed for multithreaded transactional testing.

  This allows one thread to start a transaction, and then release
  the connection back for usage by the connection pool, so that
  other threads can operate on the connection object safely inside
  the transaction.  This requires the connection pool be limited
  to a single connection, to ensure that the released connection
  can be reacquired.  It's not perfect, because if the connection
  is disconnected and removed from the pool while temporarily
  released, there is no way to handle that situation correctly.
  Example:

    DB.transaction(rollback: :always, auto_savepoint: true) do |conn|
      DB.temporarily_release_connection(conn) do
        # Other threads can operate on connection safely inside
        # the transaction
        yield
      end
    end

= Other Improvements

* In the caller_logging and provenance extensions, Ruby internal
  caller locations are skipped when trying to locate the appropriate
  caller line to include.

* A couple ignored block warnings in plugin apply methods have been
  fixed on Ruby 3.4.