11#if KCH_PQXX_MAJOR_VERSION < 7
13#include <pqxx/binarystring>
21#if KCH_PQXX_MAJOR_VERSION < 7
24#define STMT_NAME_T const std::string
28#define STMT_NAME_T constexpr zview_t
31#if KCH_PQXX_MAJOR_VERSION < 7
41std::vector<std::uint8_t>
to_bytea(
const pqxx::binarystring& bstr);
48pqxx::binarystring
to_binstr(
const std::vector<std::uint8_t>& barr);
Byte array conversion utilities.
std::basic_string< std::byte > byte_string
std::vector< uint8_t > to_bytea(byte_string_view str)
Convert a byte string to a byte array.
pqxx::binarystring to_binstr(const std::vector< std::uint8_t > &bytea)
Convert a byte array to a binary string.
pqxx::binarystring bytestr_t