MySQL++
3.3.0
|
Grabs a Connection from a ConnectionPool on construction and releases it back to the pool on destruction, and provides access to the relevant Connection pointer. More...
#include <scopedconnection.h>
Public Member Functions | |
ScopedConnection (ConnectionPool &pool, bool safe=false) | |
Standard constructor. More... | |
~ScopedConnection () | |
Destructor. More... | |
Connection * | operator-> () const |
Access the Connection pointer. | |
Connection & | operator* () const |
Dereference. | |
operator void * () const | |
Truthiness operator. | |
Grabs a Connection from a ConnectionPool on construction and releases it back to the pool on destruction, and provides access to the relevant Connection pointer.
|
explicit |
Standard constructor.
Grabs a Connection from the specified pool.
mysqlpp::ScopedConnection::~ScopedConnection | ( | ) |
Destructor.
Releases the Connection back to the ConnectionPool.
References mysqlpp::ConnectionPool::release().