I am not a user of this library, so I know about it only in the last 10 minutes, so please check.
As a rule, the best resource for such information on the use of various specific parts of a library is to view its unit tests. The best in OSS.
, MySQL Connector/++, , .
sql::ConnectOptionsMap connection_properties;
...
connection_properties["OPT_RECONNECT"]=true;
try
{
con.reset(driver->connect(connection_properties));
}
catch (sql::SQLException &e)
{
std::cerr << e.what();
}
, , , .
~/tmp$ bzr branch lp:~mysql/mysql-connector-cpp/trunk mysql-connector-cpp
~/tmp$ vi mysql-connector-cpp/test/unit/classes/connection.cpp +170
~/tmp$ vi mysql-connector-cpp/test/unit/classes/connection.h
, mysql , reset .. . MySQL, .