...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Holds the results of a SQL query (dynamic interface).
Defined in header <boost/mysql/results.hpp>
class results;
Name |
Description |
---|---|
A random access iterator to an element. |
|
The reference type. |
|
A signed integer type used to represent differences. |
|
A random access iterator to an element. |
|
The reference type. |
|
An unsigned integer type to represent sizes. |
|
A type that can hold elements in this collection with value semantics. |
Name |
Description |
---|---|
Returns the number of rows affected by the executed SQL statement. |
|
Returns the i-th resultset or throws an exception. |
|
Returns the last resultset. |
|
Returns an iterator pointing to the first resultset that this object contains. |
|
Returns whether the collection contains any resultset. |
|
Returns an iterator pointing to one-past-the-last resultset that this object contains. |
|
Returns the first resultset. |
|
Returns whether the object holds a valid result. |
|
Returns additional text information about the execution of the SQL statement. |
|
Returns the last insert ID produced by the executed SQL statement. |
|
Returns metadata about the columns in the query. |
|
Copy assignment. |
|
Returns the i-th resultset (unchecked access). |
|
Returns the output parameters of a stored procedure call. |
|
results [constructor] |
Default constructor. |
Returns the rows retrieved by the SQL query. |
|
Returns the number of resultsets that this collection contains. |
|
Returns the number of warnings produced by the executed SQL statement. |
|
~results [destructor] |
Destructor. |
This object can store the results of single and multi resultset queries.
For the former, you use meta
, rows
, affected_rows
and so on. For the
latter, this class is a random-access collection of resultset
objects.
Distinct objects: safe.
Shared objects: unsafe.
Convenience header <boost/mysql.hpp>