Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • database
  • sql
  • example_cli_test.go
Find file BlameHistoryPermalink
  • Daniel Theophanes's avatar
    database/sql: add examples for opening and testing a DB pool · 8d335084
    Daniel Theophanes authored Mar 16, 2018
    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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    8d335084
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7