MySQL 8.0.40
Source Code Documentation
PooledClassicConnection Class Reference

#include <connection_pool.h>

Inheritance diagram for PooledClassicConnection:
[legend]

Public Types

using caps_type = classic_protocol::capabilities::value_type
 
- Public Types inherited from PooledConnection
using Ssl = mysql_harness::Ssl
 

Public Member Functions

 PooledClassicConnection (std::unique_ptr< ConnectionBase > conn)
 
 PooledClassicConnection (std::unique_ptr< ConnectionBase > conn, Ssl ssl, caps_type server_caps, caps_type client_caps, std::optional< classic_protocol::message::server::Greeting > server_greeting, SslMode ssl_mode, std::string username, std::string schema, std::string attributes)
 
caps_type client_capabilities () const
 
caps_type server_capabilities () const
 
caps_type shared_capabilities () const
 
std::optional< classic_protocol::message::server::Greetingserver_greeting () const
 
SslMode ssl_mode () const
 
std::string username () const
 
std::string schema () const
 
std::string attributes () const
 
- Public Member Functions inherited from PooledConnection
 PooledConnection (std::unique_ptr< ConnectionBase > conn)
 
 PooledConnection (std::unique_ptr< ConnectionBase > conn, Ssl ssl)
 
std::unique_ptr< ConnectionBase > & connection ()
 access to conn_. More...
 
const std::unique_ptr< ConnectionBase > & connection () const
 
Sslssl ()
 access to ssl_. More...
 
const Sslssl () const
 
void remover (std::function< void()> remover)
 set a remove-callback. More...
 
void reset ()
 prepares for reusing the connection. More...
 
bool is_authenticated () const
 a pooled connection may be authenticated or not. More...
 
std::string endpoint () const
 

Private Attributes

caps_type server_caps_ {}
 
caps_type client_caps_ {}
 
std::optional< classic_protocol::message::server::Greetingserver_greeting_
 
SslMode ssl_mode_
 
std::string username_
 
std::string schema_
 
std::string attributes_
 

Member Typedef Documentation

◆ caps_type

Constructor & Destructor Documentation

◆ PooledClassicConnection() [1/2]

PooledClassicConnection::PooledClassicConnection ( std::unique_ptr< ConnectionBase conn)
inline

◆ PooledClassicConnection() [2/2]

PooledClassicConnection::PooledClassicConnection ( std::unique_ptr< ConnectionBase conn,
Ssl  ssl,
caps_type  server_caps,
caps_type  client_caps,
std::optional< classic_protocol::message::server::Greeting server_greeting,
SslMode  ssl_mode,
std::string  username,
std::string  schema,
std::string  attributes 
)
inline

Member Function Documentation

◆ attributes()

std::string PooledClassicConnection::attributes ( ) const
inline

◆ client_capabilities()

caps_type PooledClassicConnection::client_capabilities ( ) const
inline

◆ schema()

std::string PooledClassicConnection::schema ( ) const
inline

◆ server_capabilities()

caps_type PooledClassicConnection::server_capabilities ( ) const
inline

◆ server_greeting()

std::optional< classic_protocol::message::server::Greeting > PooledClassicConnection::server_greeting ( ) const
inline

◆ shared_capabilities()

caps_type PooledClassicConnection::shared_capabilities ( ) const
inline

◆ ssl_mode()

SslMode PooledClassicConnection::ssl_mode ( ) const
inline

◆ username()

std::string PooledClassicConnection::username ( ) const
inline

Member Data Documentation

◆ attributes_

std::string PooledClassicConnection::attributes_
private

◆ client_caps_

caps_type PooledClassicConnection::client_caps_ {}
private

◆ schema_

std::string PooledClassicConnection::schema_
private

◆ server_caps_

caps_type PooledClassicConnection::server_caps_ {}
private

◆ server_greeting_

std::optional<classic_protocol::message::server::Greeting> PooledClassicConnection::server_greeting_
private

◆ ssl_mode_

SslMode PooledClassicConnection::ssl_mode_
private

◆ username_

std::string PooledClassicConnection::username_
private

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