From: Ainar Garipov Date: Wed, 10 Jun 2020 15:26:29 +0000 (+0300) Subject: doc/go1.15: add release notes for database/sql and database/sql/driver X-Git-Tag: go1.15rc1~108 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bd486c39bad4c9f90190ae58de8a592bb9a2aae9;p=gostls13.git 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 --- 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. +
database/sql
+
+

+ The new DB.SetConnMaxIdleTime + 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 DBStats.MaxIdleTimeClosed + field shows the total number of connections closed due to + DB.SetConnMaxIdleTime. +

+ +

+ The new Row.Err getter + allows checking for query errors without calling + Row.Scan. +

+
+
+ +
database/sql/driver
+
+

+ The new Validator + interface may be implemented by Conn to allow drivers + to signal if a connection is valid or if it should be discarded. +

+
+
+
debug/pe