Skip to content

Use more generic ConnPool instead of *sql.DB#2

Merged
jinzhu merged 2 commits intogo-gorm:masterfrom
k3a:master
Aug 17, 2020
Merged

Use more generic ConnPool instead of *sql.DB#2
jinzhu merged 2 commits intogo-gorm:masterfrom
k3a:master

Conversation

@k3a
Copy link
Copy Markdown
Contributor

@k3a k3a commented Aug 16, 2020

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Allows using custom ConnPool implementation, returns early errors to avoid nil panics, minor lint fix due to ineffective assignment.

User Case Description

Makes it possible to use custom sql.DB middlewares similar to nap.
Avoids panic on nil if sql.Open is not successful.

@jinzhu jinzhu merged commit dc30a78 into go-gorm:master Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants