userver: storages::postgres::DBTypeName Struct Reference
Loading...
Searching...
No Matches
storages::postgres::DBTypeName Struct Reference

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

Detailed Description

Identity for a PostgreSQL type name.

Definition at line 34 of file pg_types.hpp.

Public Member Functions

constexpr DBTypeName (std::pair< std::string_view, std::string_view > n)
 
constexpr DBTypeName (const char *name)
 
constexpr DBTypeName (std::string_view s, std::string_view n)
 
bool operator== (const DBTypeName &rhs) const
 
bool operator< (const DBTypeName &rhs) const
 
bool Empty () const
 
std::size_t GetHash () const
 
std::string ToString () const
 

Public Attributes

const std::string_view schema
 
const std::string_view name
 

Constructor & Destructor Documentation

◆ DBTypeName() [1/4]

constexpr storages::postgres::DBTypeName::DBTypeName ( )
inlineconstexpr

Definition at line 38 of file pg_types.hpp.

◆ DBTypeName() [2/4]

constexpr storages::postgres::DBTypeName::DBTypeName ( std::pair< std::string_view, std::string_view > n)
inlineexplicitconstexpr

Definition at line 39 of file pg_types.hpp.

◆ DBTypeName() [3/4]

constexpr storages::postgres::DBTypeName::DBTypeName ( const char * name)
inlineconstexpr

Implicit constructor from a string literal, to enable declarations like

DBTypeName my_type = "my_schema.my_type";

Definition at line 44 of file pg_types.hpp.

◆ DBTypeName() [4/4]

constexpr storages::postgres::DBTypeName::DBTypeName ( std::string_view s,
std::string_view n )
inlineconstexpr

Definition at line 45 of file pg_types.hpp.

Member Function Documentation

◆ Empty()

bool storages::postgres::DBTypeName::Empty ( ) const
inline

Definition at line 58 of file pg_types.hpp.

◆ operator<()

bool storages::postgres::DBTypeName::operator< ( const DBTypeName & rhs) const
inline

Definition at line 48 of file pg_types.hpp.

◆ operator==()

bool storages::postgres::DBTypeName::operator== ( const DBTypeName & rhs) const
inline

Definition at line 47 of file pg_types.hpp.

Member Data Documentation

◆ name

const std::string_view storages::postgres::DBTypeName::name

Definition at line 36 of file pg_types.hpp.

◆ schema

const std::string_view storages::postgres::DBTypeName::schema

Definition at line 35 of file pg_types.hpp.


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