I have a SQL database to which I store and from which I read several objects into my C++ code.
I wrote a single database wrapper which handles all the reads and writes to the DB.
Of course this class got too large. I could make a Database wrapper for each business object but then I have to instantiate all these different wrapper classes.
Since this seams like a pretty generic situation, I am wondering what's the text book way of wrapping a database?