From bd486c39bad4c9f90190ae58de8a592bb9a2aae9 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Wed, 10 Jun 2020 18:26:29 +0300 Subject: [PATCH] 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 --- doc/go1.15.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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

-- 2.50.0