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
metadata::original_column_name

Returns the original (physical) name of the column.

Synopsis
string_view
original_column_name() const;
Description

E.g. in "SELECT id AS employee_id FROM employees", original_column_name() will be "id".

This is optional information - it won't be populated unless the connection executing the query has meta_mode() == metadata_mode::full.

Exception safety

No-throw guarantee.

Object lifetimes

The returned reference is valid as long as *this is alive and hasn't been assigned to or moved from.


PrevUpHomeNext