MySQL 9.1.0
Source Code Documentation
s_mysql_mysql_command_factory Struct Reference

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...
 

Detailed Description

A service that provides the apis for mysql command init, info, connect, reset, close, commit, auto_commit and rollback.

Member Data Documentation

◆ autocommit

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.

Parameters
[in]mysql_hA valid mysql object.
[in]modeSets autocommit mode on if mode is 1, off if mode is 0.
Return values
truefailure
falsesuccess

◆ close

mysql_service_status_t(* s_mysql_mysql_command_factory::close) (MYSQL_H mysql_h)

Calls mysql_close api to closes a server connection.

Parameters
[in]mysql_hA valid mysql object.
Return values
truefailure
falsesuccess

◆ commit

mysql_service_status_t(* s_mysql_mysql_command_factory::commit) (MYSQL_H mysql_h)

Calls mysql_commit api to commits the transaction.

Parameters
[in]mysql_hA valid mysql object.
Return values
truefailure
falsesuccess

◆ connect

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.

Parameters
[in]mysql_hA valid mysql object.
Return values
truefailure
falsesuccess

◆ init

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.

Parameters
[out]mysql_hPrepared mysql object from mysql_init call.
Return values
truefailure
falsesuccess

◆ reset

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.

Parameters
[in]mysql_hA valid mysql object.
Return values
truefailure
falsesuccess

◆ rollback

mysql_service_status_t(* s_mysql_mysql_command_factory::rollback) (MYSQL_H mysql_h)

Calls mysql_rollback api to rolls back the transaction.

Parameters
[in]mysql_hA valid mysql object.
Return values
truefailure
falsesuccess

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