Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 8e65dd421e.
PrevUpHomeNext

static_results

Holds the results of a SQL query (static interface).

Synopsis

Defined in header <boost/mysql/static_results.hpp>

template<
    class... StaticRow>
class static_results;
Member Functions

Name

Description

affected_rows

Returns the number of rows affected by the executed SQL statement.

has_value

Returns whether the object holds a valid result.

info

Returns additional text information about the execution of the SQL statement.

last_insert_id

Returns the last insert ID produced by the executed SQL statement.

meta

Returns metadata about the columns in the query.

operator=

Copy assignment.

Move assignment.

rows

Returns the rows retrieved by the SQL query.

static_results [constructor]

Default constructor.

Copy constructor.

Move constructor.

warning_count

Returns the number of warnings produced by the executed SQL statement.

~static_results [destructor]

Destructor.

Description

This object can store the results of single and multi resultset queries in a type-safe manner.

Template Parameters

Type

Description

StaticRow

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 StaticRow concept.

Thread safety

Distinct objects: safe.

Shared objects: unsafe.

Convenience header <boost/mysql.hpp>


PrevUpHomeNext