Repository Model structure, with diff detection and diff-only save #3
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: zedd/zrm#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To ease the use of models, it would be interesting to have a Model structure which holds the model and its known state in database. This would allow us to use a simple
.save()
on a model to save it, no matter its existence, and it would only save what has been changed.This may be done by implementing a special field in the model structure (so it would be opt-in) with some metadata about the model (e.g. its known database value, if it exists).