On Mon, 02 Jan 2017 21:25:42 -0800, Adam Wilson wrote: > As far as I am aware, the only way to meet those requirements is to use > a base-class model. Is there something I am missing?
Templates. Templates everywhere. Every method in your application that might possibly touch a database, or touch anything that touches a database, and so on, needs to be templated according to what type of database might be used.