5 #ifndef TABLEAU_HYPER_INSERTER_HPP
6 #define TABLEAU_HYPER_INSERTER_HPP
12 #include <hyperapi/hyperapi.h>
60 std::string asSelectListExpression()
const;
191 Inserter(
Connection& connection,
const TableName& name, std::vector<Inserter::ColumnMapping> columnMappings, std::vector<TableDefinition::Column> inserterDefinition);
247 template <typename ValueType>
258 template <typename... ValueTypes>
276 bool isOpen() const noexcept;
296 void close() noexcept;
303 void newChunk() noexcept;
314 hyperapi::TableDefinition tableDefinition;
316 internal::HyperTableDefinition tableDefinitionHandle;
318 hyperapi::TableDefinition streamDefinition;
320 internal::HyperTableDefinition streamDefinitionHandle;
322 hyper_inserter_t* inserter =
nullptr;
324 std::vector<uint8_t> currentChunk;
326 size_t chunkOffset = 0;
328 size_t headerSize = 0;
330 hyper_field_index_t currentField = 0;
332 std::
string selectList;
334 friend class InserterTest;
335 friend struct internal::ValueInserter;
339 #include <hyperapi/impl/Inserter.impl.hpp>