OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
ozo::type_traits< T > Struct Template Reference

#include <ozo/type_traits.h>

Description

template<typename T>
struct ozo::type_traits< T >

Type traits template forward declaration.

Type traits contains information related to it's representation in the database. There are two different kind of traits - built-in types with constant OIDs and custom types with database depent OIDs. The functions below describe neccesary traits. For built-in types traits will be defined there. For custom types user must define traits.

Template Parameters
T— type to examine

Types

using name = < implementation defined >
 boost::hana::string with name of the type in a database
 
using oid = < implementation defined >
 ozo::oid_constant with Oid of the built-in type or null_oid_t for non built-in type
 
using size = < implementation defined >
 ozo::size_constant with size of the type object in bytes or ozo::dynamic_size in other case