Help needed in structuring DatabaseProxy classes following SOLID principles in TypeScript
Yours Truly @ yourstruly @dataterm.digital Posts 4Comments 18Joined 2 yr. ago

Yours Truly @ yourstruly @dataterm.digital
Posts
4
Comments
18
Joined
2 yr. ago
Deleted Featured
[CURRENT PROBLEMS] Registration not possible, registration emails do not go out / Slow DATATERM with crashes
Image Stacks and iPhone Racks - Building an Internet Scale Meme Search Engine
Deleted
Small adjustments on the theme
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.