orangy / squash

SQL access DSL for Kotlin
265 stars 16 forks source link

Add support for soft-deleting #18

Open raderio opened 5 years ago

raderio commented 5 years ago

In some applications, you don’t want to, or you are not allowed to permanently remove a record from the database. But you still need to remove or hide records which are no longer active. One example could be a user account which you want to keep because it is linked to other business objects which are still used.

Typical story: after an entity is marked with deleted=true, it should not be visible anywhere, except specially chosen places.