go/src/database/sql
Daniel Theophanes 6c61a57cfc database/sql: add SetConnMaxIdleTime
Allow 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.

Fixes #25232

Change-Id: Icff157b906769a2d2d45c67525e04a72feb8d832
Reviewed-on: https://go-review.googlesource.com/c/go/+/145758
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2020-02-21 18:36:57 +00:00
..
driver database/sql: add support for decimal interface 2019-06-13 16:59:01 +00:00
convert.go all: fix typos 2019-09-08 17:28:20 +00:00
convert_test.go all: fix typos 2019-09-08 17:28:20 +00:00
ctxutil.go std: remove unused bits of code all over the place 2019-09-02 12:57:37 +00:00
doc.txt database/sql: fix outdated package name in doc.txt 2017-06-30 19:11:17 +00:00
example_cli_test.go database/sql: add examples for opening and testing a DB pool 2018-11-16 17:17:09 +00:00
example_service_test.go database/sql: add examples for opening and testing a DB pool 2018-11-16 17:17:09 +00:00
example_test.go database/sql: add example for DB.Prepare and Tx.Prepare 2019-03-25 15:51:17 +00:00
fakedb_test.go database/sql: remove forced log import from test 2019-10-21 19:27:15 +00:00
sql.go database/sql: add SetConnMaxIdleTime 2020-02-21 18:36:57 +00:00
sql_test.go database/sql: add SetConnMaxIdleTime 2020-02-21 18:36:57 +00:00