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

PrevUpHomeNext

results

Holds the results of a SQL query.

Synopsis

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

class 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 additionat 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.

results [constructor]

Default constructor.

Copy constructor.

Move constructor.

rows

Returns the rows retrieved by the SQL query.

warning_count

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

~results [destructor]

Destructor.

Description

The results (rows, metadata and additional info) are held in-memory.

Thread safety

Distinct objects: safe.

Shared objects: unsafe.

Convenience header <boost/mysql.hpp>


PrevUpHomeNext