...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 (static interface).
Defined in header <boost/mysql/static_execution_state.hpp>
template<
class... StaticRow
>
class static_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. |
|
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 |
|
static_execution_state [constructor] |
Default constructor. |
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.
Note that this class doesn't store rows anyhow. Row template parameters are used to validate their compatibility with the data that will be returned by the server.
Type |
Description |
---|---|
|
The row or row types that will be returned by the server. There
must be one for every resultset returned by the query, and always
at least one. All the passed types must fulfill the |
Distinct objects: safe.
Shared objects: unsafe.