I recently read about the Abstract Singleton and it made me wonder, how I could do a DB implementation, which (unlike the Singleton) would allow several predefined DB connections. (I have the distinct feeling, that a Factory Pattern might be involved).
So, would you share your ideas, how to do that?
PS. the DB connections are done in PDO.
This post has been edited by Dormilich: 03 August 2010 - 11:02 AM