userver: storages::postgres::io::CppToUserPg< T > Struct Template Reference
Loading...
Searching...
No Matches
storages::postgres::io::CppToUserPg< T > Struct Template Reference

Primary template for declaring mapping to a PostgreSQL user type. More...

Detailed Description

template<typename T>
struct storages::postgres::io::CppToUserPg< T >

Primary template for declaring mapping to a PostgreSQL user type.

Must contain a static constexpr DBTypeName postgres_name member.

For more information see uPg: Mapping a C++ type to PostgreSQL user type

For enumerated types must derive from EnumMappingBase template and have a static constexpr EnumeratorList enumerators member. The EnumeratorList is a type alias declared in EnumMappingBase.

For more information see uPg: Mapping a C++ enum to PostgreSQL enum type.

Definition at line 27 of file io_fwd.hpp.


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