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>
Represents an escaped SQL name.
const Name & getName() const noexcept
Gets the column name.
const SqlType & getType() const noexcept
Gets the type.
const Column & getColumn(hyper_field_index_t columnIndex) const
Returns the column at the given index.
const std::vector< Column > & getColumns() const noexcept
Returns all columns.
size_t getColumnCount() const noexcept
Returns the number of columns.
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
The primary namespace of the Hyper API for C++.