Skip to content

Adding before_disconnect hook #271

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

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

jeregrine
Copy link
Contributor

@jeregrine jeregrine commented Nov 2, 2023

This is useful with some extensions like cr-sqlite that require a cleanup setup before disconnect/close, which is not un-common.

I thought maybe this would work in db_connection but I don't know if its general enough for ALL db connections and ahh touching that state machine is the worst.

@jeregrine jeregrine requested a review from warmwaffles November 2, 2023 19:07
@jeregrine
Copy link
Contributor Author

<3 for prompt feedback

@warmwaffles warmwaffles merged commit 837a15d into elixir-sqlite:main Nov 2, 2023
@warmwaffles
Copy link
Member

@jeregrine I'll be cutting a release for this soon.

@jeregrine
Copy link
Contributor Author

@warmwaffles no rush here <3 thanks

@warmwaffles
Copy link
Member

This will be released under v0.17.0

@ruslandoga ruslandoga mentioned this pull request Dec 22, 2023
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