Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Implement soft-delete functionality #9

Open
WanWizard opened this issue Jul 23, 2012 · 2 comments
Open

Implement soft-delete functionality #9

WanWizard opened this issue Jul 23, 2012 · 2 comments

Comments

@WanWizard
Copy link
Owner

In certain environments, regulations do not allow you to really delete any information.

To facilitate this, DataMapper needs an option to be able to mark records as deleted, and to "hide" these deleted records from every interaction you have with the database.

@WanWizard
Copy link
Owner Author

Note that this must be completely transparent for the application.

The column used in the table to mark the delete state should not be considered a valid column name from the applications point of view. You should not be able to select() it. It should be added as a where() filter to every interaction with every table that has this feature defined. If you set it (as an object property) it should be ignored when compiling SQL. It must be completely hidden.

@WanWizard
Copy link
Owner Author

Got a +1 from @ingdiaz and @tarciozemel

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

No branches or pull requests

1 participant