You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.html
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@ <h2>3.2.0</h2>
23
23
failed statement, such as a deliberate server side statement timeout, from
24
24
errors that report a broken connection, when the database module maps both
25
25
onto the same exception class.</p></li>
26
+
<li><p>The <spanclass="docutils literal">ping</span> parameter of <spanclass="docutils literal">PersistentDB</span>, <spanclass="docutils literal">PooledDB</span> and
27
+
<spanclass="docutils literal">steady_db.connect()</span> now also accepts an SQL statement such as
28
+
<spanclass="docutils literal">"select 1"</span> or a callable that shall be used for checking the
29
+
connections instead of the <spanclass="docutils literal">ping()</span> method, which is not part of the
30
+
DB-API 2 specification and not provided by every database module. Pass a
31
+
tuple with the usual integer value and the SQL statement or the callable
32
+
if the connections shall not only be checked when they are requested.</p></li>
26
33
<li><p>Added a <spanclass="docutils literal">no_failover()</span> context manager to steady cursors that suspends
27
34
the failover mechanism for individual statements.</p></li>
28
35
<li><p>Added <spanclass="docutils literal">dbapi_connection</span> and <spanclass="docutils literal">dbapi_cursor</span> attributes providing
0 commit comments