Bind a record to its unique id #130
No reviewers
Labels
No Label
hex-grid
maintenance
music-player
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: savanni/monorepo#130
Loading…
Reference in New Issue
No description provided.
Delete Branch "emseries/bound-records"
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?
In the past, I've managed this by having both the record and the unique id (if one exists) float around independently. This has lead to a lot of awkward code.
Now, if a record actually exists in the database, it's going to be a Record structure, which must have an ID. If the record is new, it's going to be just bare data, not a full Record data structure.
Also, I used to allow the Record to exist with a None data to indicate that the record has been deleted. Now, there is a distinction between a Record and the private structure to keep track of records within the database.