DB2 C++ Wrapper Classes
-
Does anybody have classes which Wrap up the DB2 Call Level Interface. I am trying to get started at programming with DB2 as my back-end database - but I cannot find anything on DB2. Plenty on Access and SQL Server - but nothing on DB2. Any help would be greatly appreciated Btw - please remove the _NO_SPAM_ from my email address to reply Thanks Brian
-
Does anybody have classes which Wrap up the DB2 Call Level Interface. I am trying to get started at programming with DB2 as my back-end database - but I cannot find anything on DB2. Plenty on Access and SQL Server - but nothing on DB2. Any help would be greatly appreciated Btw - please remove the _NO_SPAM_ from my email address to reply Thanks Brian
I have worked with the DB2 CLI in version 5.1 and 6.0. At least through 6.0, the DB2 CLI was modeled after the ODBC API's. I actually used the ODBC API as reference for the DB2 CLI. I do not have a "class" wrapper for it though. I do, however, have a code/header file which I use in 3 enterpirise applications. This code exposes a set of functions to implement db2 access in a GUI application. It is intended for applications which require only a single connection (there is some code to support multiple threads, but it is minimal) and it has code built-in for connection management (ie. lost connection, auto reastiblish, auto-timeout). Also, it has an SQL logging feature to log the SQL executed by the module. It has worked very well for the applications I use it for. If you would like the code, email me at gullettm@yahoo.com and I will reply with the code attached. NOTE: There will probably be a couple of changes you will have to make to it because there are a couple of client-specific functions in it.