This patch implements what was discussed on erlang-questions in regards to allowing plug-in db modules to replace cs_db_otp. It adds a header file, database.hrl, which defines the constant DB, defaulting to cs_db_otp. Wherever cs_db_otp was referenced throughout the application, it has been replaced by ?DB.
- db_module.patch 8.48KB
Comment #1
Posted on Jul 29, 2008 by Grumpy HorseThanks, but the patch seems not to contain the additional/new files, like database.hrl.
Comment #2
Posted on Jul 29, 2008 by Quick PandaSorry about the incomplete patch. This one includes database.hrl (I forgot to svn add it before generating the last patch).
- db_module.patch 8.68KB
Comment #3
Posted on Jul 29, 2008 by Quick HorseThanks Jason, I applied your patch in revision #17
Status: Fixed
Labels:
Type-Patch
Priority-Medium