userver: storages::postgres::io::CppToUserPg< T > Struct Template Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::postgres::io::CppToUserPg< T > Struct Template Reference

Table of Contents

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: