repl db in console projects (change my mind)
@MrVoo thinks that repl DB only works in web projects, not console projects
as seen in the repl below, repl DB works perfectly fine in most console project of console projects. For whatever reason, @mrvoo 's extremely stubborn self refuses to believe the truth and claims that he had tried to use repl DB in one of his console projects but failed.
Is there a reason that this repl works but mrvoo's doesn't? Is it some sort of weird security issue that repl db doesn't work in some cases?
The ReplitDB works fine in the console as long as you are the only one reading or making changes to the database. When other users run the same REPL, they are assigned their own unique, empty, database. So, for your example above, you created a database entry called 'poop'. This works fine for you, but when the rest of us run it, our unique empty database has no such entry, so your code fails.