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>

Detailed Description

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

Optional base template for providing type aliases for defining enumeration mapping.

Definition at line 39 of file 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.
 

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 50 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 pg_enum

Definition at line 55 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 47 of file enum_types.hpp.


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