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

Add ExecuteInTransaction method for db.SQL #3309

Merged
merged 3 commits into from
Jan 16, 2024
Merged

Conversation

ItalyPaleAle
Copy link
Contributor

@ItalyPaleAle ItalyPaleAle commented Jan 9, 2024

A similar method already existed for Postgres, and this adds it for the other databases that use database/sql (MySQL, SQLite, SQL Server).

Also fixes a bug in the SQL state store cleanup, where a transaction was started for no reason.

Doesn't add new features, just a small refactoring

A similar method already existed for Postgres, and this adds it for the other databases that use database/sql (MySQL, SQLite, SQL Server).

Also fixes a bug in the SQL state store cleanup, where a transaction was started for no reason.

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
@ItalyPaleAle ItalyPaleAle added this to the v1.13 milestone Jan 16, 2024
Copy link
Contributor

@DeepanshuA DeepanshuA left a comment

Choose a reason for hiding this comment

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

LGTM.

@ItalyPaleAle ItalyPaleAle added this pull request to the merge queue Jan 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2024
@ItalyPaleAle ItalyPaleAle merged commit 3b0f320 into main Jan 16, 2024
132 of 135 checks passed
toneill818 pushed a commit to toneill818/components-contrib that referenced this pull request Jan 22, 2024
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Thomas O'Neill <toneill@new-innov.com>
@ItalyPaleAle ItalyPaleAle deleted the sql-tx-package branch February 26, 2024 18:54
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.

None yet

2 participants