userver: ydb::Row Class Reference
Loading...
Searching...
No Matches
ydb::Row Class Referencefinal

Detailed Description

Definition at line 54 of file response.hpp.

Public Member Functions

 Row (const Row &)=delete
 
 Row (Row &&) noexcept=default
 
Rowoperator= (const Row &)=delete
 
Rowoperator= (Row &&)=delete
 
template<typename T >
As () &&
 Parses the whole row to T, which must be a struct type. ydb::kStructMemberNames must be specialized for T.
 
template<typename T >
Get (std::string_view column_name)
 Parses the specified column to T. Get can only be called once for each column.
 
template<typename T >
Get (std::size_t column_index)
 Parses the specified column to T. Get can only be called once for each column.
 

Member Function Documentation

◆ As()

template<typename T >
T ydb::Row::As ( ) &&

Parses the whole row to T, which must be a struct type. ydb::kStructMemberNames must be specialized for T.

Exceptions
ydb::ColumnParseErroron parsing error
ydb::ParseErroron extra fields on C++ side
ydb::ParseErroron extra fields on YDB side

Definition at line 234 of file response.hpp.

◆ Get() [1/2]

template<typename T >
T ydb::Row::Get ( std::size_t column_index)

Parses the specified column to T. Get can only be called once for each column.

Exceptions
ydb::BaseErroron parsing error

Definition at line 255 of file response.hpp.

◆ Get() [2/2]

template<typename T >
T ydb::Row::Get ( std::string_view column_name)

Parses the specified column to T. Get can only be called once for each column.

Exceptions
ydb::BaseErroron parsing error

Definition at line 245 of file response.hpp.


The documentation for this class was generated from the following file: