...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(EXPERIMENTAL) A variant-like type holding the response of a single pipeline stage.
Defined in header <boost/mysql/pipeline.hpp>
class stage_response
Name |
Description |
---|---|
Retrieves the contained results or throws an exception. |
|
Retrieves the contained statement or throws an exception. |
|
Retrieves the contained diagnostics (lvalue reference accessor).
|
|
Retrieves the contained error code. |
|
Retrieves the contained results (unchecked accessor). |
|
Retrieves the contained statement (unchecked accessor). |
|
Returns true if the object contains a results. |
|
Returns true if the object contains a statement. |
|
stage_response [constructor] |
Default constructor. |
This is a variant-like type, similar to boost::system::result
.
At any point in time, it can contain:
statement
.
Will happen if the stage was a prepare statement that succeeded.
results
.
Will happen if the stage was a query or statement execution that succeeded.
error_code
,
diagnostics
pair. Will happen if the stage failed, or if it succeeded but it doesn't
yield a value (as in close statement, reset connection and set character
set).
This part of the API is experimental, and may change in successive releases without previous notice.