kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
|
Compatibility macros and utilities for libpqxx < 7. More...
#include "kch_config.h"
#include <cstdint>
#include <pqxx/binarystring>
#include <string_view>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | util |
Macros | |
#define | STMT_NAME_T const std::string |
Typedefs | |
using | bytestr_t = pqxx::binarystring |
using | zview_t = std::string_view |
Functions | |
std::vector< std::uint8_t > | util::to_bytea (const pqxx::binarystring &bstr) |
Convert a binary string to a byte array. More... | |
pqxx::binarystring | util::to_binstr (const std::vector< std::uint8_t > &barr) |
Convert a byte array to a binary string. More... | |
Compatibility macros and utilities for libpqxx < 7.
We need to achieve compatibility with both libpqxx 6 and libpqxx 7. However, there were major changes in the types used which are incompatible. This file provides the necessary compatibility layer be able to build kea-custom-hooks against both libpqxx 6 and 7.
Definition in file pqxx_compat.hpp.
#define STMT_NAME_T const std::string |
Definition at line 24 of file pqxx_compat.hpp.
using bytestr_t = pqxx::binarystring |
Definition at line 22 of file pqxx_compat.hpp.
using zview_t = std::string_view |
Definition at line 23 of file pqxx_compat.hpp.