-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
✨ unify transaction creation and close db connection in same call for scripts #3360
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 16, 2024
Merged
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 18, 2024 15:54
fe40423
to
e559c80
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
2 times, most recently
from
March 18, 2024 17:48
f4fc806
to
4816ba2
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 18, 2024 18:59
94180e6
to
445e098
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 18, 2024 18:59
9855cf0
to
402126d
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 19, 2024 16:02
445e098
to
c968925
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
2 times, most recently
from
March 19, 2024 20:33
57e6709
to
b469dca
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 20, 2024 10:05
c968925
to
79b18e1
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 20, 2024 10:05
b469dca
to
96b52a3
Compare
Merged
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 20, 2024 20:31
79b18e1
to
73526be
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 20, 2024 20:32
96b52a3
to
1406f03
Compare
ikesau
approved these changes
Mar 21, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this pattern. Makes connection handling far more clear!
Just clicked around the admin for 2 minutes to test... seems good!
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 21, 2024 22:22
73526be
to
1be5ef4
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 21, 2024 22:22
1406f03
to
b444008
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 23, 2024 15:34
1be5ef4
to
f8026fa
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 23, 2024 15:34
b444008
to
25902dd
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 25, 2024 11:26
f8026fa
to
65f7d9d
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 25, 2024 11:26
25902dd
to
3631bdb
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 26, 2024 11:45
65f7d9d
to
24084b8
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 26, 2024 11:45
3631bdb
to
7dc065f
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 26, 2024 13:08
24084b8
to
299207d
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 26, 2024 13:08
7dc065f
to
77a4d15
Compare
danyx23
force-pushed
the
db-cleanup-after-big-db-refactor
branch
from
March 26, 2024 14:23
299207d
to
63d6d63
Compare
danyx23
force-pushed
the
db-autocleanup-for-scripts
branch
from
March 26, 2024 14:25
77a4d15
to
cc52aec
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new parameter for the transaction creation functions that closes the database connection. This is useful for scripts which usually want to run stuff in one transaction and would then like to have the DB connection closes. For the api router the option is not used of course as it is a long running process.