Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving connection #323

Merged
merged 3 commits into from
Dec 2, 2018

Conversation

sio4
Copy link
Member

@sio4 sio4 commented Nov 30, 2018

Added callback function afterOpen() to interface dialect and call it from Connection.Open() to handle dialect specific initial setup. (as first part of proposal #295)

With this, I hope we can give dialect a change to prepare its own settings include getting server information which I already added to dialect for CockroachDB. I think it can help us to handle version different of the same database engine and service variations. (with the information from the connected server.)

Before I adding this, I made a small change to connection.go to prevent panic on the badly configured connection.

Please check this PR.

@sio4 sio4 requested a review from a team as a code owner November 30, 2018 09:30
@stanislas-m stanislas-m merged commit 264e655 into gobuffalo:development Dec 2, 2018
@sio4 sio4 deleted the improving-connection branch December 3, 2018 02:00
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