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

Use Laravel query builder for DELETE statements when possible #1729

Merged

Conversation

williamjallen
Copy link
Collaborator

We currently have several pre-laravel methods which can execute DELETE queries, but it is preferable to use Laravel's database functions instead. One advantage is that all queries executed by laravel are visible in Laravel's query log, which helps debug performance issues. DELETE statements are an easy starting place because the return value is rarely used.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

I haven't found an issue with usage yet and the code looks good to me. Once rebased, it'll be ready to merge!

@williamjallen williamjallen added this pull request to the merge queue Oct 6, 2023
Merged via the queue into Kitware:master with commit 85e4647 Oct 6, 2023
2 checks passed
@williamjallen williamjallen deleted the deprecated-delete-queries branch October 6, 2023 14:40
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.

2 participants