March 2019
Beginner to intermediate
324 pages
7h 17m
English
Another major part of well-designed database layers is the database layer interface. In order to fully appreciate the need for a database interface layer, let's imagine a quick scenario. Let's say you build your backend to use database X, and all your code relies on direct calls to database X. Now, what happens if database X turns out to be very expensive and you find a much cheaper and more maintainable database that you can use in your code? Let's call the new database, database Y. You now have to revisit every single piece of your code that did queries to database X and change it, which may affect much more code than just your database layer.
So, what do we do? We simply create an interface that defines all ...
Read now
Unlock full access