1 repo
Functionality for marking records as deleted without removing them from the database.
Distinguishing note: Distinct from standard deletion: preserves data by updating a timestamp or flag instead of executing a hard delete.
Explore 1 awesome GitHub repository matching data & databases · Soft Deletion Mechanisms. Refine with filters or upvote what's useful.
GORM is a developer-focused object-relational mapping library for Go that provides a comprehensive data persistence framework. It serves as a database access layer, allowing developers to map application structures to database tables and perform CRUD operations using a fluent, type-safe query builder instead of writing raw SQL. The library distinguishes itself through its association-aware persistence, which automatically tracks and synchronizes complex entity relationships during database operations. It utilizes a driver-agnostic interface to maintain consistent behavior across various stora
If your model includes a gorm.DeletedAt field (which is included in gorm.Model), it will get soft delete ability automatically! When calling Delete, the record WON’T be removed from the database, but GORM will set