Hyper API for C++
0.0.16638
Hyper client library for C++ applications
|
Go to the documentation of this file.
5 #ifndef TABLEAU_HYPER_RESULTSCHEMA_HPP
6 #define TABLEAU_HYPER_RESULTSCHEMA_HPP
24 friend class ResultSchemaTest;
47 const std::vector<Column>&
getColumns() const noexcept {
return columns; }
85 void addColumn(
Column&& column) { columns.emplace_back(std::move(column)); }
88 std::vector<Column> columns;
90 friend class ResultSchemaTest;
95 #include <hyperapi/impl/ResultSchema.impl.hpp>
const Column & getColumn(hyper_field_index_t columnIndex) const
Returns the column at the given index.
Represents an escaped SQL name.
const Name & getName() const noexcept
Gets the column name.
optional< hyper_field_index_t > getColumnPositionByName(const Name &name) const
Gets the position of the column with the given name.
const Column * getColumnByName(const Name &name) const
Gets the column with the given name.
Base class for a result of a query.
Surrogate for C++17 std::optional
const SqlType & getType() const noexcept
Gets the type.
The primary namespace of the Hyper API for C++.
A Column of a table definition.
const std::vector< Column > & getColumns() const noexcept
Returns all columns.
size_t getColumnCount() const noexcept
Returns the number of columns.