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
  • sql_test.go
Find file BlameHistoryPermalink
  • Daniel Theophanes's avatar
    database/sql: allow OpenConnector in a driver.Driver interface · b44b2feb
    Daniel Theophanes authored Nov 14, 2017
    While driver.Connector was previously added to allow non-string
    connection arguments and access to the context, most users of
    the sql package will continue to rely on a string DSN.
    
    Allow drivers to implement a string DSN to Connector interface
    that both allows a single parsing of the string DSN and uses
    the Connector interface which passes available context to
    the driver dialer.
    
    Fixes #22713
    
    Change-Id: Ia0b862262f4c4670effe2538d0d6d43733fea18d
    Reviewed-on: https://go-review.googlesource.com/77550
    
    
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    b44b2feb
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7