userver: userver/ydb/types.hpp File Reference
Loading...
Searching...
No Matches
types.hpp File Reference

Detailed Description

YDB primitive types and insert row column types.

Definition in file types.hpp.

Go to the source code of this file.

#include <chrono>
#include <cstdint>
#include <string>
#include <variant>
#include <vector>
#include <userver/formats/json_fwd.hpp>
#include <userver/utils/strong_typedef.hpp>
This graph shows which files directly or indirectly include this file:

Classes

class  ydb::Utf8Tag
class  ydb::JsonDocumentTag
struct  ydb::InsertColumn

Typedefs

using ydb::Timestamp = std::chrono::system_clock::time_point
using ydb::Utf8 = utils::StrongTypedef<Utf8Tag, std::string>
using ydb::JsonDocument = utils::StrongTypedef<JsonDocumentTag, formats::json::Value>
using ydb::InsertColumnValue
using ydb::InsertRow = std::vector<InsertColumn>

Typedef Documentation

◆ InsertColumnValue

using ydb::InsertColumnValue
Initial value:
std::variant<
std::string,
bool,
std::int8_t,
std::uint8_t,
std::int16_t,
std::uint16_t,
std::int32_t,
std::uint32_t,
std::int64_t,
std::uint64_t,
double,
Utf8,
Timestamp,
std::optional<std::string>,
std::optional<bool>,
std::optional<std::int8_t>,
std::optional<std::uint8_t>,
std::optional<std::int16_t>,
std::optional<std::uint16_t>,
std::optional<std::int32_t>,
std::optional<std::uint32_t>,
std::optional<std::int64_t>,
std::optional<std::uint64_t>,
std::optional<double>,
std::optional<Utf8>,
std::optional<Timestamp>>

Definition at line 58 of file types.hpp.

◆ InsertRow

using ydb::InsertRow = std::vector<InsertColumn>

Definition at line 91 of file types.hpp.

◆ JsonDocument

using ydb::JsonDocument = utils::StrongTypedef<JsonDocumentTag, formats::json::Value>

Definition at line 56 of file types.hpp.

◆ Timestamp

using ydb::Timestamp = std::chrono::system_clock::time_point

Definition at line 50 of file types.hpp.

◆ Utf8

using ydb::Utf8 = utils::StrongTypedef<Utf8Tag, std::string>

Definition at line 53 of file types.hpp.