issues
search
CharlieKarafotias
/
tmgr
A task manager CLI
1
stars
0
forks
source link
Improve DB struct to return printable fields
#100
Open
CharlieKarafotias
opened
1 week ago
CharlieKarafotias
commented
1 week ago
Current setup:
Every run function that prints out response has to know what fields exist
Causes issues when new field added to task object. (remember when adding work notes, delete needed to be updated as well)
Goal:
Simplify structure so only the DB struct needs to be touched when data model change is made
Start by adding a new function that returns HashMap of all struct fields/values for use in run functions
could a builder pattern be used to pass filter in case where only a few fields are needed to be returned
Current setup:
Goal: