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
  • James Lawrence's avatar
    database/sql: add OpenDB to directly create a *DB without a DSN. · e6358c79
    James Lawrence authored Aug 05, 2017
    The current Open method limits the ability for driver maintainers
    to expose options for their drivers by forcing all the configuration
    to pass through the DSN in order to create a *DB.
    
    This CL allows driver maintainers to write their own initialization
    functions that return a *DB making configuration of the underlying
    drivers easier.
    
    Fixes #20268
    
    Change-Id: Ib10b794f36a201bbb92c23999c8351815d38eedb
    Reviewed-on: https://go-review.googlesource.com/53430
    
    
    Reviewed-by: default avatarDaniel Theophanes <kardianos@gmail.com>
    Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    e6358c79
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7