libdballe 9.6
Public Member Functions | Public Attributes | List of all members
dballe::sql::mysql::Result Struct Reference

Public Member Functions

 Result (MYSQL_RES *res)
 
 Result (Result &&o)
 Implement move.
 
Resultoperator= (Result &&o)
 
 operator bool () const
 
 operator MYSQL_RES * ()
 
 operator const MYSQL_RES * () const
 
unsigned rowcount () const
 
unsigned colcount () const
 
Row expect_one_result ()
 Check that the function returned only one row, and return that row.
 
Row fetch ()
 Fetch one row.
 
 Result (const Result &)=delete
 
Resultoperator= (const Result &)=delete
 

Public Attributes

MYSQL_RES * res = nullptr
 

Member Function Documentation

◆ fetch()

Row dballe::sql::mysql::Result::fetch ( )
inline

Fetch one row.

Note: mysql_fetch_row does not reset the error indicator, so there is no way to tell the end of the iteration from an error. As a consequence, this is only safe to call after a mysql_store_result.

Accessing mysql_use_result results is implemented using execute_fetch.


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