SQL row metadata.
More...
#include <sql_row_metadata.h>
SQL row metadata.
Definition at line 31 of file sql_row_metadata.h.
◆ column()
const sql_column_metadata & hazelcast::client::sql::sql_row_metadata::column |
( |
std::size_t |
index | ) |
const |
Gets column metadata.
- Parameters
-
index | column index, zero-based |
- Returns
- column metadata
- Exceptions
-
IndexOutOfBoundsException | If the column index is out of bounds |
Definition at line 961 of file sql.cpp.
963 if (index >= columns_.size()) {
964 throw exception::index_out_of_bounds(
965 "sql_row_metadata::column(std::size_t index)",
966 (boost::format(
"Column index is out of bounds: %1%") % index).str());
969 return columns_[index];
◆ column_count()
std::size_t hazelcast::client::sql::sql_row_metadata::column_count |
( |
| ) |
const |
Gets the number of columns in the row.
- Returns
- the number of columns in the row
Definition at line 955 of file sql.cpp.
957 return columns_.size();
◆ columns()
const std::vector< sql_column_metadata > & hazelcast::client::sql::sql_row_metadata::columns |
( |
| ) |
const |
Gets columns metadata.
- Returns
- columns metadata
Definition at line 973 of file sql.cpp.
◆ find_column()
Find index of the column with the given name.
Returned index can be used to get column value from sql_row.
- Parameters
-
column_name | column name (case sensitive) |
- Returns
- the iterator pointing to the found item or end() if not found.
- See also
- sql_row
Definition at line 979 of file sql.cpp.
981 return name_to_index_.find(column_name);
The documentation for this class was generated from the following files: