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 549915122c.
PrevUpHomeNext
static_results::meta

Returns metadata about the columns in the query.

Synopsis
template<
    std::size_t I = 0>
metadata_collection_view
meta() const;
Description

The returned collection will have as many metadata objects as columns retrieved by the SQL query, and in the same order. Note that this may not be the same order as in the StaticRow type, since columns may be mapped by name or discarded. This function returns the representation that was retrieved from the database.

Template Parameters

Type

Description

I

Resultset index. For operations returning more than one resultset, you can explicitly specify this parameter to obtain metadata for the i-th resultset. If left unspecified, metadata for the first resultset is returned.

Preconditions

this->has_value() == true

Exception safety

No-throw guarantee.

Object lifetimes

This function returns a view object, with reference semantics. The returned view points into memory owned by *this, and will be valid as long as *this or an object move-constructed from *this are alive.

Complexity

Constant.


PrevUpHomeNext