userver: userver/storages/mysql/row_types.hpp Source File
Loading...
Searching...
No Matches
row_types.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/mysql/row_types.hpp
4/// @brief Helper tags to disambiguate result extraction between row and field.
5
6USERVER_NAMESPACE_BEGIN
7
8namespace storages::mysql {
9
10/// Used for extracting statement results as a single field.
11struct FieldTag {};
12/// Used for extracting statement results as rows.
13struct RowTag {};
14
15inline constexpr FieldTag kFieldTag;
16inline constexpr RowTag kRowTag{};
17
18} // namespace storages::mysql
19
20USERVER_NAMESPACE_END