![]() |
MySQL 26.10.0
Source Code Documentation
|
Owns the component command-service handle and optional thread initialization. More...
#include <mrs_component_mysql_command_service_session.h>
Classes | |
| class | Connection_error |
Public Member Functions | |
| Mysql_command_service_session ()=default | |
| ~Mysql_command_service_session () | |
| Mysql_command_service_session (const Mysql_command_service_session &)=delete | |
| Mysql_command_service_session & | operator= (const Mysql_command_service_session &)=delete |
| Mysql_command_service_session (Mysql_command_service_session &&)=delete | |
| Mysql_command_service_session & | operator= (Mysql_command_service_session &&)=delete |
| void | connect (const std::string &user, const std::string &host, bool initialize_thread, unsigned long extra_client_flags=0, bool bypass_max_connections=false) |
| void | connect_authenticated (const std::string &user, const mysql_harness::SecureString &password, unsigned long extra_client_flags=0) |
| void | close () noexcept |
| bool | reset () noexcept |
| bool | autocommit (bool mode) noexcept |
| MYSQL_H | handle () const noexcept |
| MYSQL * | mysql () const noexcept |
| bool | is_connected () const noexcept |
| unsigned int | last_errno () const noexcept |
| std::string | last_error () const |
| std::string | last_sqlstate () const |
Private Member Functions | |
| void | connect_impl (const std::string &user, const std::string &host, bool initialize_thread, unsigned long extra_client_flags, bool bypass_max_connections, const mysql_harness::SecureString *password) |
Private Attributes | |
| MYSQL_H | mysql_h_ {nullptr} |
| bool | thread_initialized_ {false} |
| std::string | user_ |
| std::string | host_ |
Owns the component command-service handle and optional thread initialization.
Callers retain responsibility for SQL policy and result handling.
|
default |
| mrs_component::Mysql_command_service_session::~Mysql_command_service_session | ( | ) |
|
delete |
|
delete |
|
noexcept |
|
noexcept |
| void mrs_component::Mysql_command_service_session::connect | ( | const std::string & | user, |
| const std::string & | host, | ||
| bool | initialize_thread, | ||
| unsigned long | extra_client_flags = 0, |
||
| bool | bypass_max_connections = false |
||
| ) |
| void mrs_component::Mysql_command_service_session::connect_authenticated | ( | const std::string & | user, |
| const mysql_harness::SecureString & | password, | ||
| unsigned long | extra_client_flags = 0 |
||
| ) |
|
private |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
| std::string mrs_component::Mysql_command_service_session::last_error | ( | ) | const |
| std::string mrs_component::Mysql_command_service_session::last_sqlstate | ( | ) | const |
|
noexcept |
|
delete |
|
delete |
|
noexcept |
|
private |
|
private |
|
private |