Opinion: Writing generic code to allow switching databases isn't a good plan
I work with a lot of different software houses. Microsoft calls these ISVs (Independent Software Vendors). They develop applications that we all use day to day.
When I look at their code, many developers have tried to write database-agnostic code. They might be working with SQL Server today, but want to be able to use Oracle, or Cassandra, etc. without changing code.
As a concept, that sounds great. Why would you want to tie yourself into a specific vendor?
2020-02-25

