MySQL 8.1.0
Source Code Documentation
s_mysql_mysql_command_query Struct Reference

A service that provides the apis for mysql command query and affected_rows. More...

#include <mysql_command_services.h>

Public Attributes

mysql_service_status_t(* query )(MYSQL_H mysql, const char *stmt_str, unsigned long length)
 Calls mysql_real_query api to executes an SQL query specified as a counted string. More...
 
mysql_service_status_t(* affected_rows )(MYSQL_H mysql, uint64_t *rows)
 Calls mysql_affected_rows api to return the number of rows changed/deleted/inserted by the last UPDATE,DELETE or INSERT query. More...
 

Detailed Description

A service that provides the apis for mysql command query and affected_rows.

Member Data Documentation

◆ affected_rows

mysql_service_status_t(* s_mysql_mysql_command_query::affected_rows) (MYSQL_H mysql, uint64_t *rows)

Calls mysql_affected_rows api to return the number of rows changed/deleted/inserted by the last UPDATE,DELETE or INSERT query.

Parameters
[in]mysqlA valid mysql object.
[out]*rowsNumber of rows affected, for SELECT stmt it tells about number of rows present.
Return values
truefailure
falsesuccess

◆ query

mysql_service_status_t(* s_mysql_mysql_command_query::query) (MYSQL_H mysql, const char *stmt_str, unsigned long length)

Calls mysql_real_query api to executes an SQL query specified as a counted string.

Parameters
[in]mysqlA valid mysql object.
[in]stmt_strSQL statement which has a query.
[in]lengthA string length bytes long.
Return values
truefailure
falsesuccess

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