Add support for soft-delete
See original GitHub issueIn many cases, people will want to soft-delete records instead of hard-deleting them, i.e. execute:
-- This:
UPDATE t SET t.deleted = true WHERE t.id = ?
-- Instead of this:
DELETE t WHERE t.id = ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Working With Soft Deletes in Laravel 8 and 9 (By Example)
Laravel provides support for soft deleting using the Illuminate\Database\Eloquent\SoftDeletes trait. ... Adding the Soft Delete Columns to a New Table.
Read more >Enable soft delete for blobs - Azure Storage - Microsoft Learn
To enable blob soft delete for an existing storage account by using the Azure portal, follow these steps: In the Azure portal, navigate...
Read more >A guide to soft-delete models in Laravel - Beyond Code
Add the SoftDeletes trait to the User model: class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable ...
Read more >How to Implement a Soft Delete with Spring JPA - Baeldung
A common way to implement soft delete is to add a field that will indicate whether data has been deleted or not.
Read more >Soft Deletes | Craft CMS Documentation | 4.x
Modules and plugins can add soft delete support to their components by following this guide. All element types support soft deletes out of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Support for soft delete can be achieved with the new
@Where
annotation. See https://micronaut-projects.github.io/micronaut-data/snapshot/guide/#whereAnnotationGood question, probably should