Cppgres
Build Postgres extensions in C++
|
A trait to convert from and into a cppgres::datum. More...
#include <datum.hpp>
Static Public Member Functions | |
static T | from_datum (const datum &, std::optional< memory_context > context=std::nullopt)=delete |
Convert from a datum. | |
static datum | into_datum (const T &d)=delete |
Convert datum into a type. | |
A trait to convert from and into a cppgres::datum.
T | C++ type to convert into and from |
|
staticdelete |
Convert from a datum.
Gets an optional cppgres::memory_context when available to be able to determine the source of the (pointer) datum.
|
staticdelete |
Convert datum into a type.
Unlike from_datum, gets no memory context.