OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
Concepts

Description

Database-related type system concepts.

Classes

interface  Array
 Array concept represents PostgreSQL array. More...
 
interface  Composite
 Composite concept represents PostgreSQL composite types. More...
 

Variables

template<typename T >
constexpr bool ozo::BuiltIn
 Condition indicates if the specified type is built-in for PG. More...
 
template<typename T >
constexpr auto ozo::DynamicSize
 Condition indicates if the specified type is has dynamic size. More...
 
template<typename T >
constexpr auto ozo::StaticSize
 Condition indicates if the specified type is has fixed size. More...
 
template<typename T >
constexpr auto ozo::OidMap
 Map of C++ types to corresponding PostgreSQL types OIDs. More...
 

Variable Documentation

◆ BuiltIn

template<typename T >
constexpr bool ozo::BuiltIn
constexpr

Condition indicates if the specified type is built-in for PG.

Template Parameters
T— type to check

◆ DynamicSize

template<typename T >
constexpr auto ozo::DynamicSize
constexpr

Condition indicates if the specified type is has dynamic size.

Template Parameters
T— type to check

◆ OidMap

template<typename T >
constexpr auto ozo::OidMap
constexpr

Map of C++ types to corresponding PostgreSQL types OIDs.

OidMap is needed to store information about C++ types and corresponding custom database types' OIDs. For PostgreSQL built-in types no mapping is needed since their OIDs are defined in PostgreSQL sources. For custom types their OIDs are defined in a database.

OidMap Definition

OidMap map is an object for which these next statements are valid:

oid_t oid;
//...
set_type_oid<T>(map, oid);

Sets oid for type T in the map.

oid_t oid = type_oid<T>(map);

Returns oid value for type T from the map.

bool res = empty(map);

Returns true if map has no types OIDs.

See also
oid_map_t, register_types(), set_type_oid(), type_oid(), accepts_oid()

◆ StaticSize

template<typename T >
constexpr auto ozo::StaticSize
constexpr

Condition indicates if the specified type is has fixed size.

Template Parameters
T— type to check
ozo::empty
constexpr bool empty(const oid_map_t< Ts... > &map) noexcept
Definition: type_traits.h:674
ozo::oid_t
::Oid oid_t
PostgreSQL OID type - object identifier.
Definition: type_traits.h:70