![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
A result set contains the result of a query. More...
#include <protocol_local_v2.h>
Public Member Functions | |
| Result_set () | |
| Result_set (List< Row< value_t > > *rows_arg, Row< Column_metadata > *fields, size_t column_count, ulonglong affected_rows, ulonglong last_insert_id) | |
| ~Result_set ()=default | |
| Row< value_t > * | get_next_row () | 
| Get the next row.  More... | |
| bool | is_last_row () | 
| Check if the iterator is at the last row.  More... | |
| ulonglong | get_num_affected_rows () const | 
| Get the num affected row count.  More... | |
| ulonglong | get_last_insert_id () const | 
| Get the last insert id.  More... | |
| List< Row< value_t > > * | get_rows () | 
| Get the list of rows from result set.  More... | |
| operator List< Row< value_t > > & () | |
| Get reference for rows in results set.  More... | |
| unsigned int | size () const | 
| Get number for rows in result set.  More... | |
| Row< Column_metadata > * | get_fields () | 
| Get the field metadata.  More... | |
| size_t | get_field_count () const | 
| Get the field count in result set.  More... | |
| bool | has_next () | 
| Check if we have more than one result set.  More... | |
| Result_set * | get_next () | 
| Get the next result set object.  More... | |
| void | set_next (Result_set *ptr) | 
| Set the current result set pointer.  More... | |
| void | update (List< Row< value_t > > *rows_arg, Row< Column_metadata > *fields, size_t column_count, ulonglong affected_rows, ulonglong last_insert_id) | 
| Update the members of result set.  More... | |
Static Public Member Functions | |
| static void * | operator new (size_t size, MEM_ROOT *mem_root, const std::nothrow_t &=std::nothrow) noexcept | 
| Custom memory allocation for Result set object.  More... | |
| static void | operator delete (void *) noexcept | 
| static void | operator delete (void *, MEM_ROOT *, const std::nothrow_t &) noexcept | 
Private Member Functions | |
| Result_set (const Result_set &)=delete | |
| Result_set & | operator= (Result_set &)=delete | 
| Result_set (const Result_set &&)=delete | |
| Result_set & | operator= (Result_set &&)=delete | 
Private Attributes | |
| Row< Column_metadata > * | m_fields {nullptr} | 
| size_t | m_column_count {0} | 
| List< Row< value_t > > * | m_rows {nullptr} | 
| List_iterator_fast< Row< value_t > > | m_row_iterator | 
| Result_set * | m_next {nullptr} | 
| ulonglong | m_affected_row {0} | 
| ulonglong | m_last_insert_id {0} | 
A result set contains the result of a query.
It is a collection of Rows and its metadata
      
  | 
  privatedelete | 
      
  | 
  privatedelete | 
| Result_set::Result_set | ( | ) | 
| Result_set::Result_set | ( | List< Row< value_t > > * | rows_arg, | 
| Row< Column_metadata > * | fields, | ||
| size_t | column_count, | ||
| ulonglong | affected_rows, | ||
| ulonglong | last_insert_id | ||
| ) | 
      
  | 
  default | 
      
  | 
  inline | 
Get the field count in result set.
      
  | 
  inline | 
Get the field metadata.
      
  | 
  inline | 
Get the last insert id.
      
  | 
  inline | 
Get the next result set object.
      
  | 
  inline | 
Get the num affected row count.
Get the list of rows from result set.
      
  | 
  inline | 
Check if we have more than one result set.
      
  | 
  inline | 
Check if the iterator is at the last row.
      
  | 
  inlinestaticnoexcept | 
      
  | 
  inlinestaticnoexcept | 
Get reference for rows in results set.
      
  | 
  inlinestaticnoexcept | 
Custom memory allocation for Result set object.
| size | size of the memory | 
| mem_root | mem root object pointer | 
      
  | 
  privatedelete | 
      
  | 
  privatedelete | 
      
  | 
  inline | 
Set the current result set pointer.
Generally used when traversing through all result set.
| ptr | pointer to result set | 
      
  | 
  inline | 
Get number for rows in result set.
      
  | 
  inline | 
Update the members of result set.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |