|
lintel 0.2.0
|
#include <ScopedConnection.h>
Public Member Functions | |
| ScopedConnection (std::shared_ptr< DatabaseConnectionEntry > connectionEntry) | |
| ~ScopedConnection () | |
| ScopedConnection (const ScopedConnection &)=delete | |
| ScopedConnection & | operator= (const ScopedConnection &)=delete |
| ScopedConnection (ScopedConnection &&other) noexcept | |
| ScopedConnection & | operator= (ScopedConnection &&other) noexcept |
| Connection & | connection () const |
| bool | valid () const |
| bool | isPooled () const |
RAII helper that obtains a database connection.
|
explicit |
| lintel::db::ScopedConnection::~ScopedConnection | ( | ) |
|
delete |
|
noexcept |
| Connection & lintel::db::ScopedConnection::connection | ( | ) | const |
| bool lintel::db::ScopedConnection::isPooled | ( | ) | const |
|
delete |
|
noexcept |
| bool lintel::db::ScopedConnection::valid | ( | ) | const |