...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Holds state for multi-function SQL execution operations (dynamic interface).
Defined in header <boost/mysql/execution_state.hpp>
class execution_state
Name |
Description |
---|---|
Returns the number of rows affected by the SQL statement associated to this resultset. |
|
Returns whether all the messages generated by this operation have been read. |
|
execution_state [constructor] |
Default constructor. |
Returns additional text information about this resultset. |
|
Returns whether the current resultset represents a procedure OUT params. |
|
Returns the last insert ID produced by the SQL statement associated to this resultset. |
|
Returns metadata about the columns in the query. |
|
Copy assignment. |
|
Returns whether the next operation should be read resultset head. |
|
Returns whether the next operation should be read some rows. |
|
Returns whether |
|
Returns the number of warnings produced by the SQL statement associated to this resultset. |
This class behaves like a state machine. The current state can be accessed
using should_start_op
, should_read_rows
, should_read_head
and complete
. They are mutually exclusive.
More states may be added in the future as more protocol features are implemented.
Distinct objects: safe.
Shared objects: unsafe.