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

feat: greatly improve capabilities of delete queries #826

Closed
wants to merge 5 commits into from

Conversation

zepatrik
Copy link
Contributor

What is being done in this PR?

Allow using any .Join(), pagination, or whatever capabilities in delete queries.

What are the main choices made to get to this solution?

Using a select sub-query because it works on any database. The sub-query relies on the assumption that a record only has a unique primary key. Composite keys can cause too many records to be deleted. Similar problems also occur in other parts of the codebase.

List the manual test cases you've covered before sending this PR:

None, "only" automated tests.

@zepatrik zepatrik changed the base branch from development to main August 10, 2023 14:11
@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 25, 2023
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

This PR was closed because it has been stalled for 45+7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant