aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAinar Garipov <gugl.zadolbal@gmail.com>2020-06-10 18:26:29 +0300
committerDaniel Theophanes <kardianos@gmail.com>2020-06-13 16:03:19 +0000
commitbd486c39bad4c9f90190ae58de8a592bb9a2aae9 (patch)
treeab6478cea85ff9b0c5dcb233f084d7ef92c0a640 /doc
parentb05b254e9da137a599b309f4c5158a05e9e11d32 (diff)
downloadgo-bd486c39bad4c9f90190ae58de8a592bb9a2aae9.tar.gz
go-bd486c39bad4c9f90190ae58de8a592bb9a2aae9.zip
doc/go1.15: add release notes for database/sql and database/sql/driver
Updates #37419. Change-Id: Ifb6aa9a671f677e1a3e908f0b75bf0da17a57ad0 Reviewed-on: https://go-review.googlesource.com/c/go/+/237397 Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.15.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/go1.15.html b/doc/go1.15.html
index 80f0e00932..69a20690b9 100644
--- a/doc/go1.15.html
+++ b/doc/go1.15.html
@@ -540,6 +540,35 @@ Do not send CLs removing the interior tags from such phrases.
</dd>
</dl><!-- crypto/x509/pkix -->
+<dl id="database/sql"><dt><a href="/pkg/database/sql/">database/sql</a></dt>
+ <dd>
+ <p><!-- CL 145758 -->
+ The new <a href="/pkg/database/sql/#DB.SetConnMaxIdleTime"><code>DB.SetConnMaxIdleTime</code></a>
+ method allows removing a connection from the connection pool after
+ it has been idle for a period of time, without regard to the total
+ lifespan of the connection. The <a href="/pkg/database/sql/#DBStats.MaxIdleTimeClosed"><code>DBStats.MaxIdleTimeClosed</code></a>
+ field shows the total number of connections closed due to
+ <code>DB.SetConnMaxIdleTime</code>.
+ </p>
+
+ <p><!-- CL 214317 -->
+ The new <a href="/pkg/database/sql/#Row.Err"><code>Row.Err</code></a> getter
+ allows checking for query errors without calling
+ <code>Row.Scan</code>.
+ </p>
+ </dd>
+</dl><!-- database/sql -->
+
+<dl id="database/sql/driver"><dt><a href="/pkg/database/sql/driver">database/sql/driver</a></dt>
+ <dd>
+ <p><!-- CL 174122 -->
+ The new <a href="/pkg/database/sql/driver/#Validator"><code>Validator</code></a>
+ interface may be implemented by <code>Conn</code> to allow drivers
+ to signal if a connection is valid or if it should be discarded.
+ </p>
+ </dd>
+</dl><!-- database/sql/driver -->
+
<dl id="debug/pe"><dt><a href="/pkg/debug/pe/">debug/pe</a></dt>
<dd>
<p><!-- CL 222637 -->