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

Implement driver.DriverContext and driver.Connector interfaces in sql/driver #213

Merged
merged 2 commits into from
Oct 2, 2020

Conversation

tie
Copy link
Contributor

@tie tie commented Oct 1, 2020

This PR partially addresses issue #210 by implementing the approach that relies either on Go support (see golang/go#41710) or runtime.SetFinalizer to close the underlying database. Note that the latter is non-deterministic and we can’t handle an error.

Copy link
Collaborator

@asdine asdine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I really hope golang/go#41710 gets accepted eventually 👍🏼

@asdine asdine merged commit 8cab385 into chaisql:master Oct 2, 2020
@asdine asdine added this to the v0.9.0 milestone Oct 2, 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