add comment 3eb43ce8ab338850fb6e5005ab5fee8d on issue 08f0d7ee7842c439382816d21ec1dea2
This commit is contained in:
parent
f77babb1a4
commit
502e843b2f
1 changed files with 26 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
maybe there's a delineation that's starting to be drawn here between an "issue" and what the database on the backend uses.
|
||||
|
||||
for the filesystem DB, i think it might make sense to have a hashmap that stores everything as a key-value pair, where each key is a file, and each value is the contents of that file.
|
||||
|
||||
once we go up the stack, i think it makes sense to have things in concrete structs, since that's easier to reason about.
|
||||
|
||||
this also frees up the filesystem DB to get used for other things potentially, not just issues.
|
||||
|
||||
so you'd have a system where
|
||||
|
||||
```
|
||||
filesystem
|
||||
^
|
||||
|
|
||||
v
|
||||
db layer: key/value pair
|
||||
^
|
||||
|
|
||||
v
|
||||
application layer: concrete structs (like `Issue` etc)
|
||||
^
|
||||
|
|
||||
v
|
||||
presentation layer: (CLI / TUI / etc.)
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue