Re:Writing a Package Manager
by david2ndaccount on Wednesday August 23, 2023 @02:06AM
(#37232360)
Honestly pretty strange to write a package manager for sqlite and to use directories + json files to store the data instead of sqlite.
[ Parent
| on HN ]
Great point
[delayed]
Re:Writing a Package Manager
by grumblingdev on Wednesday August 23, 2023 @07:26AM
(#37234266)
SQL not so good for tree structures. Recursive CTEs are pretty gnarly.
Graphdb would be ideal.
You want to bring in a dependency to avoid writing one 8 line CTE?
Re:Writing a Package Manager
by christophberger on Wednesday August 23, 2023 @09:47AM
(#37235782)
The number of lines needed is not a good measure for gnarliness.
(To be fair, I don't know if gnarliness is measurable at all.)
It isn’t gnarly at all, but recursive CTE are outside the experience of most SQL devs. Here “gnarly” is used to describe “unfamiliar”.
Re:Writing a Package Manager
by jbverschoor on Wednesday August 23, 2023 @10:27AM
(#37236498)
SQLite is a pretty darn good solution for any file(set) that needs atomic / consistent writes
Why not? Just add child/parent ids