Databricks C++ SDK 0.2.4
Interact with Databricks via an SDK
Loading...
Searching...
No Matches
databricks::ConnectionPool::PooledConnection Class Reference

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
 
PooledConnectionoperator= (const PooledConnection &)=delete
 
 PooledConnection (PooledConnection &&) noexcept
 
PooledConnectionoperator= (PooledConnection &&) noexcept
 
Clientget ()
 Get the underlying client.
 
const Clientget () const
 Get the underlying client (const version)
 
Clientoperator-> ()
 Access the client via pointer semantics.
 
const Clientoperator-> () const
 Access the client via pointer semantics (const)
 

Detailed Description

RAII wrapper for a pooled connection.

Automatically returns the connection to the pool when destroyed.

Definition at line 38 of file connection_pool.h.

Constructor & Destructor Documentation

◆ PooledConnection() [1/3]

databricks::ConnectionPool::PooledConnection::PooledConnection ( std::unique_ptr< Client client,
ConnectionPool pool 
)

◆ ~PooledConnection()

databricks::ConnectionPool::PooledConnection::~PooledConnection ( )

◆ PooledConnection() [2/3]

databricks::ConnectionPool::PooledConnection::PooledConnection ( const PooledConnection )
delete

◆ PooledConnection() [3/3]

databricks::ConnectionPool::PooledConnection::PooledConnection ( PooledConnection &&  )
noexcept

Member Function Documentation

◆ get() [1/2]

Client & databricks::ConnectionPool::PooledConnection::get ( )

Get the underlying client.

Returns
Reference to the Client

◆ get() [2/2]

const Client & databricks::ConnectionPool::PooledConnection::get ( ) const

Get the underlying client (const version)

Returns
Const reference to the Client

◆ operator->() [1/2]

Client * databricks::ConnectionPool::PooledConnection::operator-> ( )

Access the client via pointer semantics.

◆ operator->() [2/2]

const Client * databricks::ConnectionPool::PooledConnection::operator-> ( ) const

Access the client via pointer semantics (const)

◆ operator=() [1/2]

PooledConnection & databricks::ConnectionPool::PooledConnection::operator= ( const PooledConnection )
delete

◆ operator=() [2/2]

PooledConnection & databricks::ConnectionPool::PooledConnection::operator= ( PooledConnection &&  )
noexcept

The documentation for this class was generated from the following file: