Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::default_datum_conversion< T, R > Struct Template Reference
Inheritance diagram for cppgres::default_datum_conversion< T, R >:
cppgres::datum_conversion< T, std::enable_if_t< expanded_varlena_type< T > > >

Static Public Member Functions

static R from_nullable_datum (const nullable_datum &d, const oid oid, std::optional< memory_context > context=std::nullopt)
 Convert from a nullable datum.
 
static nullable_datum into_nullable_datum (const T &d)
 Convert into a nullable datum.
 

Member Function Documentation

◆ from_nullable_datum()

template<typename T , typename R = T>
static R cppgres::default_datum_conversion< T, R >::from_nullable_datum ( const nullable_datum d,
const oid  oid,
std::optional< memory_context context = std::nullopt 
)
inlinestatic

Convert from a nullable datum.

Gets an optional cppgres::memory_context when available to be able to determine the source of the (pointer) datum.


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