|
| CountedMySQLSession () |
|
| ~CountedMySQLSession () override |
|
virtual void | allow_failure_at_next_query () |
|
virtual ConnectionParameters | get_connection_parameters () const |
|
virtual void | execute_initial_sqls () |
|
virtual Sqls | get_initial_sqls () const |
|
virtual void | connect_and_set_opts (const ConnectionParameters &connection_params, const Sqls &initial_sqls) |
|
void | connect (const MySQLSession &other, const std::string &username, const mysql_harness::SecureString &password) override |
|
void | connect (const std::string &host, unsigned int port, const std::string &username, const mysql_harness::SecureString &password, const std::string &unix_socket, const std::string &default_schema, int connect_timeout=kDefaultConnectTimeout, int read_timeout=kDefaultReadTimeout, unsigned long extra_client_flags=0) override |
|
void | change_user (const std::string &user, const mysql_harness::SecureString &password, const std::string &db) override |
|
void | reset () override |
|
uint64_t | prepare (const std::string &query) override |
|
void | prepare_execute_with_bind_parameters (uint64_t ps_id, std::vector< MYSQL_BIND > bind_parameters, const ResultRowProcessor &processor, const FieldValidator &validator, const OnResultSetEnd &on_resultset_end) override |
|
void | prepare_remove (uint64_t ps_id) override |
|
void | execute (const std::string &query) override |
|
void | query (const std::string &query, const ResultRowProcessor &processor, const FieldValidator &validator) override |
|
std::unique_ptr< MySQLSession::ResultRow > | query_one (const std::string &query, const FieldValidator &validator) override |
|
std::unique_ptr< MySQLSession::ResultRow > | query_one (const std::string &query) override |
|
| MySQLSession () |
|
virtual | ~MySQLSession () |
|
virtual void | set_ssl_options (mysql_ssl_mode ssl_mode, const std::string &tls_version, const std::string &ssl_cipher, const std::string &ca, const std::string &capath, const std::string &crl, const std::string &crlpath) |
|
uint64_t | connection_id () |
|
mysql_ssl_mode | ssl_mode () const |
|
std::string | tls_version () const |
|
std::string | ssl_cipher () const |
|
std::string | ssl_ca () const |
|
std::string | ssl_capath () const |
|
std::string | ssl_crl () const |
|
std::string | ssl_crlpath () const |
|
std::string | ssl_cert () const |
|
std::string | ssl_key () const |
|
int | connect_timeout () const |
|
int | read_timeout () const |
|
virtual void | set_ssl_cert (const std::string &cert, const std::string &key) |
|
template<class SettableMysqlOption > |
stdx::expected< void, MysqlError > | set_option (const SettableMysqlOption &opt) |
| set a mysql option. More...
|
|
template<class GettableMysqlOption > |
bool | get_option (GettableMysqlOption &opt) const |
| get a mysql option. More...
|
|
void | connect (const std::string &host, unsigned int port, const std::string &username, const std::string &password, const std::string &unix_socket, const std::string &default_schema, int connect_timeout=kDefaultConnectTimeout, int read_timeout=kDefaultReadTimeout, unsigned long extra_client_flags=0) |
|
void | connect (const MySQLSession &other, const std::string &username, const std::string &password) |
|
void | change_user (const std::string &user, const std::string &password, const std::string &db) |
|
virtual void | connect (const MySQLSession &other, const std::string &username, const mysql_harness::SecureString &password) |
| Connect using the same settings and parameters that were used for the last other.connect() using provided credentials. More...
|
|
virtual void | disconnect () |
|
void | query (const std::string &query, const RowProcessor &processor, const FieldValidator &validator) |
|
void | query (const std::string &stmt, const RowProcessor &processor) |
|
virtual int | ping () |
|
virtual bool | execute_nb (const std::string &query) |
|
virtual uint64_t | last_insert_id () noexcept |
|
virtual uint64_t | affected_rows () noexcept |
|
virtual unsigned | warning_count () noexcept |
|
virtual std::string | quote (const std::string &s, char qchar='\'') const |
|
virtual bool | is_connected () noexcept |
|
const std::string & | get_address () noexcept |
|
virtual const char * | last_sqlstate () |
|
virtual const char * | last_error () |
|
virtual unsigned int | last_errno () |
|
virtual const char * | ssl_cipher () |
|
virtual bool | has_data_on_socket () |
|
virtual std::vector< std::string > | get_session_tracker_data (enum enum_session_state_type type) |
|
virtual bool | is_ssl_session_reused () |
|
virtual unsigned long | server_version () |
|
MYSQL * | get_handle () |
|