question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for soft-delete

See original GitHub issue

In 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
graemerochercommented, Oct 22, 2019

Support for soft delete can be achieved with the new @Where annotation. See https://micronaut-projects.github.io/micronaut-data/snapshot/guide/#whereAnnotation

0reactions
graemerochercommented, Oct 25, 2019

Good question, probably should

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found