#include <userver/storages/postgres/io/user_types.hpp>
Container for connection-specific user data types.
Definition at line 38 of file user_types.hpp.
Public Types | |
using | CompositeFieldDefs = std::vector<CompositeFieldDef> |
Public Member Functions | |
UserTypes (const UserTypes &)=delete | |
UserTypes (UserTypes &&) noexcept=default | |
UserTypes & | operator= (const UserTypes &)=delete |
UserTypes & | operator= (UserTypes &&) noexcept=default |
void | Reset () |
Oid | FindOid (DBTypeName) const |
Oid | FindArrayOid (DBTypeName) const |
Oid | FindElementOid (Oid) const |
DBTypeName | FindName (Oid) const |
DBTypeName | FindBaseName (Oid) const |
Oid | FindBaseOid (Oid) const |
Oid | FindBaseOid (DBTypeName) const |
Oid | FindDomainBaseOid (Oid) const |
bool | HasParser (Oid) const |
io::BufferCategory | GetBufferCategory (Oid) const |
const io::TypeBufferCategory & | GetTypeBufferCategories () const |
void | AddType (DBTypeDescription &&desc) |
void | AddCompositeFields (CompositeFieldDefs &&defs) |
const CompositeTypeDescription & | GetCompositeDescription (Oid) const |
const DBTypeDescription * | GetTypeDescription (Oid) const |
void | CheckRegisteredTypes () const |
using storages::postgres::UserTypes::CompositeFieldDefs = std::vector<CompositeFieldDef> |
Definition at line 40 of file user_types.hpp.
void storages::postgres::UserTypes::CheckRegisteredTypes | ( | ) | const |
UserTypeError | if not all registered cpp types are added |
DBTypeName storages::postgres::UserTypes::FindBaseName | ( | Oid | ) | const |
Find name of the base type for a domain or element type for an array. For the rest of types returns the name for the oid if found.
Find base oid for a domain or element type for an array. For the rest of types returns the oid itself.
Find base oid for a domain. For the rest of types returns the oid itself.
Find element type oid for an array type. Returns invalid oid if the type is not an array or the type is not found
const DBTypeDescription * storages::postgres::UserTypes::GetTypeDescription | ( | Oid | ) | const |
Get type description by oid. May return nullptr if the type was not loaded from the database