Cppgres
Build Postgres extensions in C++
Loading...
Searching...
No Matches
cppgres::named_type Struct Reference

Type identified by its name. More...

#include <types.hpp>

Inheritance diagram for cppgres::named_type:
cppgres::type

Public Member Functions

 named_type (const std::string_view name)
 Type identified by an unqualified name.
 
 named_type (const std::string_view schema, const std::string_view name)
 Type identified by a qualified name.
 
- Public Member Functions inherited from cppgres::type
std::string_view name (bool qualified=false)
 Type name as defined in Postgres.
 
bool operator== (const type &other) const
 

Additional Inherited Members

- Public Attributes inherited from cppgres::type
::Oid oid
 

Detailed Description

Type identified by its name.

Note
Once constructed, the resolved type stays the same and doesn't change during the lifetime of the value.

Constructor & Destructor Documentation

◆ named_type() [1/2]

cppgres::named_type::named_type ( const std::string_view  name)
inline

Type identified by an unqualified name.

Parameters
nameunqualified type name

◆ named_type() [2/2]

cppgres::named_type::named_type ( const std::string_view  schema,
const std::string_view  name 
)
inline

Type identified by a qualified name.

Parameters
schemaschema name
nametype name

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