SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Provides a mechanism for making direct calls to the MySQL API. More...
#include <rw/db/mysrc/myssysh.h>
Public Member Functions | |
MYSQL * | mysql () |
Class RWDBMySqlLibSystemHandle contains the MYSQL
structure used by the RWDBConnection.
#include <mysql.h> #include <rw/db/mysrc/myssysh.h> RWDBMySqlLibSystemHandle* sys = (RWDBMySqlLibSystemHandle*)myConnection.systemHandle();
If it is necessary for your application to make calls directly to the MySQL API, proceed as in the following example:
#include <mysql.h> #include <rw/db/myssrc/myssysh.h> RWDBConnection mySqlConnect = myDbase.connection(); RWDBMySqlLibSystemHandle* handle = (RWDBMySqlLibSystemHandle*) mySqlConnect.systemHandle(); MYSQL* mysql = handle->mysql(); // Use mysql for MySQL C API calls.
MYSQL* RWDBMySqlLibSystemHandle::mysql | ( | ) |
Returns a pointer to the MYSQL
structure encapsulated by the respective RWDBConnection.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.