libpqxx
The C++ client library for PostgreSQL
pqxx::string_traits< DATA > Struct Template Referencefinal

#include <conversions.hxx>

Static Public Member Functions

static std::size_t size_buffer (DATA const &value) noexcept
 
static std::string_view to_buf (std::span< char > buf, DATA const &value, ctx c={})
 
static DATA from_string (std::string_view text, ctx c={})
 Convert a string to binary data. More...
 

Member Function Documentation

◆ from_string()

template<binary DATA>
static DATA pqxx::string_traits< DATA >::from_string ( std::string_view  text,
ctx  c = {} 
)
inlinestatic

Convert a string to binary data.

◆ size_buffer()

template<binary DATA>
static std::size_t pqxx::string_traits< DATA >::size_buffer ( DATA const &  value)
inlinestaticnoexcept

◆ to_buf()

template<binary DATA>
static std::string_view pqxx::string_traits< DATA >::to_buf ( std::span< char >  buf,
DATA const &  value,
ctx  c = {} 
)
inlinestatic

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