libpqxx  7.7.3
pqxx::string_traits< binarystring > Struct Template Reference

String conversion traits for binarystring. More...

#include <binarystring.hxx>

Static Public Member Functions

static std::size_t size_buffer (binarystring const &value) noexcept
 
static zview to_buf (char *begin, char *end, binarystring const &value)
 
static char * into_buf (char *begin, char *end, binarystring const &value)
 
static binarystring from_string (std::string_view text)
 

Detailed Description

template<>
struct pqxx::string_traits< binarystring >

String conversion traits for binarystring.

Defines the conversions between a binarystring and its PostgreSQL textual format, for communication with the database.

These conversions rely on the "hex" format which was introduced in PostgreSQL 9.0. Both your libpq and the server must be recent enough to speak this format.

Member Function Documentation

◆ from_string()

static binarystring pqxx::string_traits< binarystring >::from_string ( std::string_view  text)
static

Start a block of deprecated code which may call other deprecated code.

Most compilers will emit warnings when deprecated code is invoked from non-deprecated code. But some compilers (notably gcc) will always emit the warning even when the calling code is also deprecated.

This header starts a block where those warnings are suppressed. It can be included inside a code block.

Always match the #include with a closing #include of "ignore-deprecated-post.hxx". To avoid mistakes, keep the enclosed area as small as possible.

End a code block started by "ignore-deprecated-pre.hxx".

References pqxx::internal::size_unesc_bin(), and pqxx::internal::unesc_bin().

◆ into_buf()

static char* pqxx::string_traits< binarystring >::into_buf ( char *  begin,
char *  end,
binarystring const &  value 
)
static

◆ size_buffer()

static std::size_t pqxx::string_traits< binarystring >::size_buffer ( binarystring const &  value)
staticnoexcept

◆ to_buf()

static zview pqxx::string_traits< binarystring >::to_buf ( char *  begin,
char *  end,
binarystring const &  value 
)
static

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