Skip to content

take connection from dialector if available#15

Merged
jinzhu merged 1 commit intogo-gorm:masterfrom
Deepak13245:feature/sqlite_connection_from_dialector
Oct 9, 2020
Merged

take connection from dialector if available#15
jinzhu merged 1 commit intogo-gorm:masterfrom
Deepak13245:feature/sqlite_connection_from_dialector

Conversation

@Deepak13245
Copy link
Copy Markdown
Contributor

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

What did this pull request do?

Accept existing connection from dialector
To keep parity across other drivers (mysql, pg) they already do this

User Case Description

When working with elastic-apm-go it uses its own driver to open connections and hence they are traceable.
We were able to pass the apm opened connections to mysql and pg since they already have this field in Dialector

@jinzhu jinzhu merged commit a2ff836 into go-gorm:master Oct 9, 2020
samuelncui pushed a commit to samuelncui/gorm-sqlite that referenced this pull request Oct 4, 2023
…m.io/gorm-1.23.2

Bump gorm.io/gorm from 1.23.1 to 1.23.2
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