Your opinion will help to improve our service
Leave a feedback >#include <userver/storages/postgres/io/enum_types.hpp>
Helper for enumerators that use Parse
and ToString
functions for conversions, mostly for autogenerated enums from chaotic.
A generated enum:
can be registered in the following way
After that the enum is mapped to the PostgreSQL type that can be created in the following way:
Use it as usual:
Definition at line 70 of file enum_types.hpp.