![]() |
fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
|
A lightweight, non-owning view of a single row's data with typed accessors. More...
#include <Row.h>
Public Member Functions | |
| Row (Client &client, const std::vector< Descriptor > &descriptors, std::span< const std::byte > message) | |
| Constructs a Row view over the given message buffer. | |
| template<typename T > | |
| T | get (unsigned index) |
| Retrieves a column using the most appropriate typed accessor specialization. | |
| template<Aggregate T> | |
| T | get () |
| Retrieves all output columns into a user-defined aggregate struct. | |
| template<TupleLike T> | |
| T | get () |
| Retrieves all output columns into a tuple-like type. | |
| template<VariantLike V> | |
| V | get (unsigned index) |
| Retrieves a column value as a user-defined variant type. | |
Result reading | |
| bool | isNull (unsigned index) |
| Reports whether the row has a null at the given column. | |
| std::optional< bool > | getBool (unsigned index) |
| Reads a boolean column. | |
| std::optional< std::int16_t > | getInt16 (unsigned index) |
| Reads a 16-bit signed integer column. | |
| std::optional< ScaledInt16 > | getScaledInt16 (unsigned index) |
| Reads a scaled 16-bit signed integer column. | |
| std::optional< std::int32_t > | getInt32 (unsigned index) |
| Reads a 32-bit signed integer column. | |
| std::optional< ScaledInt32 > | getScaledInt32 (unsigned index) |
| Reads a scaled 32-bit signed integer column. | |
| std::optional< std::int64_t > | getInt64 (unsigned index) |
| Reads a 64-bit signed integer column. | |
| std::optional< ScaledInt64 > | getScaledInt64 (unsigned index) |
| Reads a scaled 64-bit signed integer column. | |
| std::optional< ScaledOpaqueInt128 > | getScaledOpaqueInt128 (unsigned index) |
| Reads a Firebird scaled 128-bit integer column. | |
| std::optional< BoostInt128 > | getBoostInt128 (unsigned index) |
| Reads a Boost 128-bit integer column. | |
| std::optional< ScaledBoostInt128 > | getScaledBoostInt128 (unsigned index) |
| Reads a scaled Boost 128-bit integer column. | |
| std::optional< float > | getFloat (unsigned index) |
| Reads a single precision floating-point column. | |
| std::optional< double > | getDouble (unsigned index) |
| Reads a double precision floating-point column. | |
| std::optional< OpaqueDecFloat16 > | getOpaqueDecFloat16 (unsigned index) |
| Reads a Firebird 16-digit decimal floating-point column. | |
| std::optional< BoostDecFloat16 > | getBoostDecFloat16 (unsigned index) |
| Reads a Boost-based 16-digit decimal floating-point column. | |
| std::optional< OpaqueDecFloat34 > | getOpaqueDecFloat34 (unsigned index) |
| Reads a Firebird 34-digit decimal floating-point column. | |
| std::optional< BoostDecFloat34 > | getBoostDecFloat34 (unsigned index) |
| Reads a Boost-based 34-digit decimal floating-point column. | |
| std::optional< Date > | getDate (unsigned index) |
| Reads a date column. | |
| std::optional< OpaqueDate > | getOpaqueDate (unsigned index) |
| Reads a raw date column in Firebird's representation. | |
| std::optional< Time > | getTime (unsigned index) |
| Reads a time-of-day column without timezone. | |
| std::optional< OpaqueTime > | getOpaqueTime (unsigned index) |
| Reads a raw time-of-day column in Firebird's representation. | |
| std::optional< Timestamp > | getTimestamp (unsigned index) |
| Reads a timestamp column without timezone. | |
| std::optional< OpaqueTimestamp > | getOpaqueTimestamp (unsigned index) |
| Reads a raw timestamp column in Firebird's representation. | |
| std::optional< TimeTz > | getTimeTz (unsigned index) |
| Reads a time-of-day column with timezone. | |
| std::optional< OpaqueTimeTz > | getOpaqueTimeTz (unsigned index) |
| Reads a raw time-of-day column with timezone in Firebird's representation. | |
| std::optional< TimestampTz > | getTimestampTz (unsigned index) |
| Reads a timestamp-with-time-zone column. | |
| std::optional< OpaqueTimestampTz > | getOpaqueTimestampTz (unsigned index) |
| Reads a raw timestamp-with-time-zone column in Firebird's representation. | |
| std::optional< BlobId > | getBlobId (unsigned index) |
| Reads a blob identifier column. | |
| std::optional< std::string > | getString (unsigned index) |
| Reads a textual column, applying number-to-string conversions when needed. | |
A lightweight, non-owning view of a single row's data with typed accessors.
Row provides typed access to column values in a message buffer, using descriptors to interpret the raw bytes. It is produced by RowSet for any fetched row.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |