A service that provides the apis for mysql command, store_result, free_result, more_results, next_result, result_metadata and fetch_row.
More...
#include <mysql_command_services.h>
A service that provides the apis for mysql command, store_result, free_result, more_results, next_result, result_metadata and fetch_row.
◆ fetch_lengths
Calls mysql_fetch_lengths api to Returns the lengths of all columns in the current row.
- Parameters
-
[in] | res_h | An mysql result object to fetch a row from the result set. |
[out] | *length | lengths of all columns. |
- Return values
-
◆ fetch_row
Calls mysql_fetch_row api to fetches the next row from the result set.
- Parameters
-
[in] | res_h | An mysql result object to fetch a row from the result set. |
[out] | *row | To store the fetched row with server's charset. |
- Return values
-
◆ free_result
Calls mysql_free_result api to frees memory used by a result set.
- Parameters
-
[in] | mysql_res | An mysql result object to free the result set. |
- Return values
-
◆ more_results
Calls mysql_more_results api to checks whether any more results exist.
- Parameters
-
[in] | mysql | A valid mysql object. |
- Return values
-
◆ next_result
int(* s_mysql_mysql_command_query_result::next_result) (MYSQL_H mysql) |
Calls mysql_next_result api to returns/initiates the next result in multiple-result executions.
- Parameters
-
[in] | mysql | A valid mysql object. |
- Return values
-
-1 | no more results |
>0 | error |
0 | if yes more results exits(keep looping) |
◆ result_metadata
Calls mysql_result_metadata api to whether a result set has metadata.
- Parameters
-
[in] | res_h | An mysql result object to get the metadata info. |
- Return values
-
true | failure metadata_info not present. |
false | success metadata_info present. |
◆ store_result
Calls mysql_store_result api to retrieves a complete result set.
- Parameters
-
[in] | mysql | A valid mysql object. |
[out] | *mysql_res | An mysql result object to get the result set. |
- Return values
-
The documentation for this struct was generated from the following file: