1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:54:44 -07:00
go/src/database/sql
Daniel Theophanes 8d335084cc database/sql: add examples for opening and testing a DB pool
Show two larger application examples. One example that
could be used in a CLI, the other in a long running
service. These demonstarates different strategies for
handling DB.Ping errors in context.

Fixes #23738

Change-Id: Id01213caf1f47917239a7506b01d30e37db74d31
Reviewed-on: https://go-review.googlesource.com/c/101216
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-11-16 17:17:09 +00:00
..
driver database/sql: add support for returning cursors to client 2018-11-08 21:19:17 +00:00
convert_test.go database/sql: fix TestConversions when count > 1 2018-01-25 03:39:24 +00:00
convert.go database/sql: add support for returning cursors to client 2018-11-08 21:19:17 +00:00
ctxutil.go database/sql: fix ctx.Done() == nil check 2017-11-15 21:28:27 +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 examples for opening and testing a DB pool 2018-11-16 17:17:09 +00:00
fakedb_test.go database/sql: add support for returning cursors to client 2018-11-08 21:19:17 +00:00
sql_test.go database/sql: add support for returning cursors to client 2018-11-08 21:19:17 +00:00
sql.go database/sql: add support for returning cursors to client 2018-11-08 21:19:17 +00:00