|
Databricks C++ SDK 0.2.4
Interact with Databricks via an SDK
|
RAII wrapper for a pooled connection. More...
#include <connection_pool.h>
Public Member Functions | |
| PooledConnection (std::unique_ptr< Client > client, ConnectionPool *pool) | |
| ~PooledConnection () | |
| PooledConnection (const PooledConnection &)=delete | |
| PooledConnection & | operator= (const PooledConnection &)=delete |
| PooledConnection (PooledConnection &&) noexcept | |
| PooledConnection & | operator= (PooledConnection &&) noexcept |
| Client & | get () |
| Get the underlying client. | |
| const Client & | get () const |
| Get the underlying client (const version) | |
| Client * | operator-> () |
| Access the client via pointer semantics. | |
| const Client * | operator-> () const |
| Access the client via pointer semantics (const) | |
RAII wrapper for a pooled connection.
Automatically returns the connection to the pool when destroyed.
Definition at line 38 of file connection_pool.h.
| databricks::ConnectionPool::PooledConnection::PooledConnection | ( | std::unique_ptr< Client > | client, |
| ConnectionPool * | pool | ||
| ) |
| databricks::ConnectionPool::PooledConnection::~PooledConnection | ( | ) |
|
delete |
|
noexcept |
| Client & databricks::ConnectionPool::PooledConnection::get | ( | ) |
Get the underlying client.
| const Client & databricks::ConnectionPool::PooledConnection::get | ( | ) | const |
Get the underlying client (const version)
| Client * databricks::ConnectionPool::PooledConnection::operator-> | ( | ) |
Access the client via pointer semantics.
| const Client * databricks::ConnectionPool::PooledConnection::operator-> | ( | ) | const |
Access the client via pointer semantics (const)
|
delete |
|
noexcept |