...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 (static interface).
Defined in header <boost/mysql/static_results.hpp>
template<
class... StaticRow
>
class static_results
Name |
Description |
---|---|
Returns the number of rows affected by the executed SQL statement. |
|
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 rows retrieved by the SQL query. |
|
static_results [constructor] |
Default constructor. |
Returns the number of warnings produced by the executed SQL statement. |
|
~static_results [destructor] |
Destructor. |
This object can store the results of single and multi resultset queries in a type-safe manner.
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.