#include <ozo/result.h>
Database request result value proxy.
Provides access to values of a database request result. The library is designed to do not obligate a user to have a deal with raw and untyped results representation. But sometimes it is really needed to have an access to raw representation of the result. E.g. for reducing memory consumption or performance reason. For that case the library provides this mechanism.
Public Member Functions | |
oid_t | oid () const noexcept |
bool | is_text () const noexcept |
bool | is_binary () const noexcept |
const char * | data () const noexcept |
std::size_t | size () const noexcept |
bool | is_null () const noexcept |
|
noexcept |
Get value raw data buffer access.
|
noexcept |
Determine whether the value is in binary format. Should be always true for current implementation.
true
— value in binary format false
— value in text format
|
noexcept |
Determine whether the value is in NULL
state.
true
— if value is NULL
false
— value is not NULL
|
noexcept |
Determine whether the value is in text format. Should be always false for current implementation.
true
— value in text format false
— value in binary format
|
noexcept |
Get value type OID
|
noexcept |
Get value raw data buffer size.