|
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_nullable_datum (const nullable_datum &d, const oid oid, std::optional< memory_context > context=std::nullopt)=delete |
| Convert from a nullable datum. | |
| static T | from_datum (const datum &, const oid, 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. | |
| static nullable_datum | into_nullable_datum (const T &d)=delete |
| Convert into a nullable datum. | |
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 from a nullable 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.