MySQL 8.0.31
Source Code Documentation
mysql_query_attributes::iterator Class Reference

Iterator over the THD::bind_parameter_values collection. More...

Public Member Functions

bool init (MYSQL_THD hthd, const char *name)
 Create a cursor. More...
 
bool next ()
 
const PS_PARAMget_current () const
 
THDget_thd () const
 

Private Attributes

THDthd {nullptr}
 
PS_PARAMcurrent {nullptr}
 
unsigned long ofs {0}
 

Detailed Description

Iterator over the THD::bind_parameter_values collection.

Will only return the named ones and will skip past the unnamed ones.

Member Function Documentation

◆ get_current()

const PS_PARAM * mysql_query_attributes::iterator::get_current ( ) const
inline

◆ get_thd()

THD * mysql_query_attributes::iterator::get_thd ( ) const
inline

◆ init()

bool mysql_query_attributes::iterator::init ( MYSQL_THD  hthd,
const char *  name 
)
inline

Create a cursor.

The name is expected to be in UTF8mb4's primary collation. Sets the iterator to the first matching element (if any) or at eof.

Parameters
hthdthe thread handle
namethe query attribute name to look for and set the iterator to
Return values
false: found
true: not found or error initializing

skip the unnamed parameters

◆ next()

bool mysql_query_attributes::iterator::next ( )
inline

Member Data Documentation

◆ current

PS_PARAM* mysql_query_attributes::iterator::current {nullptr}
private

◆ ofs

unsigned long mysql_query_attributes::iterator::ofs {0}
private

◆ thd

THD* mysql_query_attributes::iterator::thd {nullptr}
private

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