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>
diff --git a/doc/go1.15.html b/doc/go1.15.html
index 80f0e00..69a2069 100644
--- a/doc/go1.15.html
+++ b/doc/go1.15.html
@@ -540,6 +540,35 @@
</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 -->