userver: userver/ydb/io/insert_row.hpp Source File
Loading...
Searching...
No Matches
insert_row.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/ydb/io/insert_row.hpp
4/// @brief @copybrief ydb::ValueTraits<ydb::InsertRow>
5
6#include <userver/ydb/io/traits.hpp>
7#include <userver/ydb/types.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace ydb {
12
13/// @brief YDB I/O traits for insert row type
14template <>
15struct ValueTraits<InsertRow> {
16 // We don't have enough type information to parse Null.
17 static InsertRow Parse(NYdb::TValueParser& parser, const std::string& column_name) = delete;
18
19 static void Write(NYdb::TValueBuilderBase<NYdb::TValueBuilder>& builder, const InsertRow& value);
20
21 static void Write(NYdb::TValueBuilderBase<NYdb::TParamValueBuilder>& builder, const InsertRow& value);
22};
23
24} // namespace ydb
25
26USERVER_NAMESPACE_END