MySQL 8.0.39
Source Code Documentation
|
A service that provides the apis for mysql command init, info, connect, reset, close, commit, auto_commit and rollback. More...
#include <mysql_command_services.h>
Public Attributes | |
mysql_service_status_t(* | init )(MYSQL_H *mysql_h) |
Calls mysql_init() api to Gets or initializes a MYSQL_H structure. More... | |
mysql_service_status_t(* | connect )(MYSQL_H mysql_h) |
Calls mysql_real_connect api to connects to a MySQL server. More... | |
mysql_service_status_t(* | reset )(MYSQL_H mysql_h) |
Calls mysql_reset_connection api to resets the connection to clear session state. More... | |
mysql_service_status_t(* | close )(MYSQL_H mysql_h) |
Calls mysql_close api to closes a server connection. More... | |
mysql_service_status_t(* | commit )(MYSQL_H mysql_h) |
Calls mysql_commit api to commits the transaction. More... | |
mysql_service_status_t(* | autocommit )(MYSQL_H mysql_h, bool mode) |
Calls mysql_autocommit api to toggles autocommit mode on/off. More... | |
mysql_service_status_t(* | rollback )(MYSQL_H mysql_h) |
Calls mysql_rollback api to rolls back the transaction. More... | |
A service that provides the apis for mysql command init, info, connect, reset, close, commit, auto_commit and rollback.
mysql_service_status_t(* s_mysql_mysql_command_factory::autocommit) (MYSQL_H mysql_h, bool mode) |
Calls mysql_autocommit api to toggles autocommit mode on/off.
[in] | mysql_h | A valid mysql object. |
[in] | mode | Sets autocommit mode on if mode is 1, off if mode is 0. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::close) (MYSQL_H mysql_h) |
Calls mysql_close api to closes a server connection.
[in] | mysql_h | A valid mysql object. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::commit) (MYSQL_H mysql_h) |
Calls mysql_commit api to commits the transaction.
[in] | mysql_h | A valid mysql object. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::connect) (MYSQL_H mysql_h) |
Calls mysql_real_connect api to connects to a MySQL server.
[in] | mysql_h | A valid mysql object. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::init) (MYSQL_H *mysql_h) |
Calls mysql_init() api to Gets or initializes a MYSQL_H structure.
[out] | mysql_h | Prepared mysql object from mysql_init call. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::reset) (MYSQL_H mysql_h) |
Calls mysql_reset_connection api to resets the connection to clear session state.
[in] | mysql_h | A valid mysql object. |
true | failure |
false | success |
mysql_service_status_t(* s_mysql_mysql_command_factory::rollback) (MYSQL_H mysql_h) |
Calls mysql_rollback api to rolls back the transaction.
[in] | mysql_h | A valid mysql object. |
true | failure |
false | success |