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

Introduce a new rule to lint nested transactions #303

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

andrewsmith
Copy link
Contributor

Since PostgreSQL doesn't support true nested transactions, this rule looks for transaction managements statements that might cause problems when running migrations, like BEGIN or COMMIT being issued multiple times. It also enforces strictness around assume-in-transaction: the migration tool is in charge of the transaction and explicit BEGIN/COMMIT statements may cause problems.

Since PostgreSQL doesn't support true nested transactions, this rule
looks for transaction managements statements that might cause problems
when running migrations, like BEGIN or COMMIT being issued multiple
times. It also enforces strictness around assume-in-transaction: the
migration tool is in charge of the transaction and explicit BEGIN/COMMIT
statements may cause problems.
@netlify
Copy link

netlify bot commented Apr 11, 2023

👷 Deploy request for squawkhq pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8804223

Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

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

Looks great!

@sbdchd sbdchd added the automerge automerge with kodiak label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge with kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants