userver: storages::postgres::io::EnumMappingBase< Enum > Struct Template Reference
Loading...
Searching...
No Matches
storages::postgres::io::EnumMappingBase< Enum > Struct Template Reference

#include <userver/storages/postgres/io/enum_types.hpp>

Public Types

using EnumType = Enum
 Type alias for the enumeration.
 
using Enumerator = detail::Enumerator< Enum >
 Type alias for enumerator literal value holder.
 
using EnumeratorList = const std::initializer_list< Enumerator >
 Type alias for enumerator-literal mapping.
 

Detailed Description

template<typename Enum>
struct storages::postgres::io::EnumMappingBase< Enum >

Base template for providing type aliases for defining enumeration mapping.

Definition at line 86 of file enum_types.hpp.

Member Typedef Documentation

◆ Enumerator

template<typename Enum >
using storages::postgres::io::EnumMappingBase< Enum >::Enumerator = detail::Enumerator<Enum>

Type alias for enumerator literal value holder.

Definition at line 95 of file enum_types.hpp.

◆ EnumeratorList

template<typename Enum >
using storages::postgres::io::EnumMappingBase< Enum >::EnumeratorList = const std::initializer_list<Enumerator>

Type alias for enumerator-literal mapping.

See uPg: Mapping a C++ enum to PostgreSQL enum type.

Definition at line 99 of file enum_types.hpp.

◆ EnumType

template<typename Enum >
using storages::postgres::io::EnumMappingBase< Enum >::EnumType = Enum

Type alias for the enumeration.

As the mapping must be specialized in storages::postgres::io namespace, the enumerator value can be quite a long name. This type alias is a shortcut to the enumeration type.

Definition at line 93 of file enum_types.hpp.


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