MySQL 8.4.0
Source Code Documentation
s_mysql_mysql_stmt_get_string Struct Reference

A service that provides the API for get string value from a row. More...

#include <mysql_statement_service.h>

Public Attributes

mysql_service_status_t(* get )(my_h_row row, uint32_t column_index, mysql_cstring_with_length *data, bool *is_null)
 Get string at column_index from a row. More...
 

Detailed Description

A service that provides the API for get string value from a row.

auto result = mysql_cstring_with_length{}; auto is_null = false; if (SERVICE_PLACEHOLDER(mysql_stmt_get_string) ->get(row, column_index, &result, &is_null) == MYSQL_FAILURE) { return {}; }

Member Data Documentation

◆ get

mysql_service_status_t(* s_mysql_mysql_stmt_get_string::get) (my_h_row row, uint32_t column_index, mysql_cstring_with_length *data, bool *is_null)

Get string at column_index from a row.

Parameters
[in]rowThe row handle
[in]column_index0-based index at which the data is extracted
[out]dataThe extracted string
[out]is_nullFlag to indicate if value is null
Returns
Status of the performed operation
Return values
falsesuccess
truefailure

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