|
lintel 0.2.0
|
#include <Connection.h>
Public Member Functions | |
| Connection (const std::string &connectionInfo) | |
| Connection (const std::shared_ptr< DatabaseConnectionEntry > &connectionEntry) | |
| Connection (Connection &connection)=delete | |
| bool | isHealthy () const |
| ~Connection () | |
Friends | |
| class | Transaction |
| class | Statement |
| class | PreparedStatement |
| class | Notify |
| class | Cursor |
PostgreSQL database connection wrapping a PGconn handle.
|
explicit |
Constructs a PostgreSQL connection from a connection string.
| connectionInfo | the PostgreSQL connection string |
|
explicit |
Constructs a PostgreSQL connection from a configuration entry.
| connectionEntry | the database connection configuration entry |
|
delete |
| lintel::postgresql::Connection::~Connection | ( | ) |
Destructor, closes the connection.
| bool lintel::postgresql::Connection::isHealthy | ( | ) | const |
PQstatus == CONNECTION_OK)
|
friend |
|
friend |