A service that provides the apis for handle_ok, handle_error and error.
More...
#include <mysql_command_consumer.h>
|
void(* | handle_ok )(SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned int statement_warn_count, unsigned long long affected_rows, unsigned long long last_insert_id, const char *const message) |
| Command ended with success. More...
|
|
void(* | handle_error )(SRV_CTX_H srv_ctx_h, unsigned int sql_errno, const char *const err_msg, const char *const sqlstate) |
| Command ended with ERROR, updating the error info into srv_ctx_h. More...
|
|
mysql_service_status_t(* | error )(SRV_CTX_H srv_ctx_h, unsigned int *err_num, const char **error_msg) |
| Getting the error info from srv_ctx_h. More...
|
|
A service that provides the apis for handle_ok, handle_error and error.
◆ error
Getting the error info from srv_ctx_h.
- Parameters
-
srv_ctx_h | Dom_ctx data handle. |
err_num | Error code |
error_msg | Error message |
- Returns
- status of operation
- Return values
-
false | success. |
true | failure. |
◆ handle_error
void(* s_mysql_mysql_text_consumer_error_v1::handle_error) (SRV_CTX_H srv_ctx_h, unsigned int sql_errno, const char *const err_msg, const char *const sqlstate) |
Command ended with ERROR, updating the error info into srv_ctx_h.
- Parameters
-
srv_ctx_h | Dom_ctx data handle. |
sql_errno | Error code |
err_msg | Error message |
sqlstate | SQL state corresponding to the error code |
◆ handle_ok
void(* s_mysql_mysql_text_consumer_error_v1::handle_ok) (SRV_CTX_H srv_ctx_h, unsigned int server_status, unsigned int statement_warn_count, unsigned long long affected_rows, unsigned long long last_insert_id, const char *const message) |
Command ended with success.
- Parameters
-
srv_ctx_h | Dom_ctx data handle. |
server_status | Status of server (see mysql_com.h, SERVER_STATUS_*) |
statement_warn_count | Number of warnings thrown during execution |
affected_rows | Number of rows affected by the command |
last_insert_id | Last insert id being assigned during execution |
message | A message from server |
The documentation for this struct was generated from the following file: