Self-taught software developer (he/him)
I’ve heard of SQL Island and SQL Police Department which appear to be in the same vein, but I haven’t got any hands on experience with those two.
You must be a fan of the primeagen
This is really nice! You might also enjoy: Select Star SQL and SQL Murder Mystery
I came today from Reddit. Think i’m here for good. This feels magical.
Hello. Appreciate your question. I think that this is a good use case for the Repository Pattern.
In your case, this might look something like this:
You can consult the Design Patterns / Gang of Four book for more details
Off topic, but personally I don’t feel you should worry too much about having to change the database in the future. I have rarely seen it happen in my career.