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

Soft delete #1330

Open
danysz opened this issue Dec 23, 2024 · 1 comment
Open

Soft delete #1330

danysz opened this issue Dec 23, 2024 · 1 comment
Labels
Datasource enhancement New feature or request

Comments

@danysz
Copy link
Contributor

danysz commented Dec 23, 2024

Is your feature request related to a problem? Please describe.
I would like to have SoftDelete as an option for some tables or for all of them.

Describe the solution you'd like
To have automatically added to the tables delete_at as a time stamp.

Describe alternatives you've considered
Another option is to create a base structure which have all the time stamps fields like created_at, updated_at and deleted_at and manage all those times automatically as part of gofr.
Another option is to integrate with some ORM which already have this functionality.

@Umang01-hash Umang01-hash added enhancement New feature or request Datasource labels Dec 24, 2024
@XxThunderBlastxX
Copy link

I think adding an ORM like GORM would be excellent solution for this. This will also add support for building SQL query using GORM methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datasource enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants