userver: storages::odbc::Field Class Reference
Loading...
Searching...
No Matches
storages::odbc::Field Class Reference

#include </data/code/userver/odbc/include/userver/storages/odbc/field.hpp>

Detailed Description

Single cell in an ODBC result set row.

Definition at line 66 of file field.hpp.

Public Types

using size_type = std::size_t

Public Member Functions

size_type RowIndex () const
size_type FieldIndex () const
bool IsNull () const
std::string GetString () const
int64_t GetInt64 () const
int32_t GetInt32 () const
double GetDouble () const
bool GetBool () const
template<typename T>
As () const

Protected Member Functions

 Field (detail::ResultWrapperPtr res, size_type row, size_type col)

Member Typedef Documentation

◆ size_type

using storages::odbc::Field::size_type = std::size_t

Definition at line 68 of file field.hpp.

Constructor & Destructor Documentation

◆ Field()

storages::odbc::Field::Field ( detail::ResultWrapperPtr res,
size_type row,
size_type col )
inlineprotected

Definition at line 91 of file field.hpp.

Member Function Documentation

◆ As()

template<typename T>
T storages::odbc::Field::As ( ) const

Converts the field with strict SQL category, NULL and range checks. Use As<std::optional<T>>() to accept SQL NULL.

Definition at line 115 of file field.hpp.

◆ FieldIndex()

size_type storages::odbc::Field::FieldIndex ( ) const
inline

Definition at line 71 of file field.hpp.

◆ RowIndex()

size_type storages::odbc::Field::RowIndex ( ) const
inline

Definition at line 70 of file field.hpp.

◆ Row

friend class Row
friend

Definition at line 87 of file field.hpp.


The documentation for this class was generated from the following file:
  • /data/code/userver/odbc/include/userver/storages/odbc/field.hpp