Admittedly, I try and stay away from database design whenever possible at work. (Everything database is legacy for us) But the way the term is being used here kinda makes me wonder, do modern sql databases have enough security features and permissions management systems in place that you could just directly expose your database to the world with a "guest" user that can only make incredibly specific queries?Cut out the middle man, directly serve the query response to the package manager client.
(I do immediately see issues stemming from the fact that you cant leverage features like edge caching this way, but I'm not really asking if its a good solution, im more asking if its possible at all)
bob1029|2 months ago
Anything where you are opening a TCP connection to a hosted SQL server is a non-starter. You could hypothetically have so many read replicas that no one could blow anyone else up, but this would get to be very expensive at scale.
Something involving SQLite is probably the most viable option.
IshKebab|2 months ago
Also Stackoverflow exposes a SQL interface so it isn't totally impossible.
unknown|2 months ago
[deleted]
zX41ZdbW|2 months ago
baobun|2 months ago
brendoncarroll|2 months ago
All of the complexity lives on the client. That makes a lot of sense for a package manager because it's something lots of people want to run, but no one really wants to host.
yawaramin|2 months ago
mirekrusin|2 months ago
[0] https://fossil-scm.org