|
libpqxx
The C++ client library for PostgreSQL
|
#include <array>#include <cstring>#include <map>#include <memory>#include <numeric>#include <optional>#include <type_traits>#include <variant>#include <vector>#include "pqxx/types.hxx"#include "pqxx/util.hxx"Go to the source code of this file.
Namespaces | |
| namespace | pqxx |
| The home of all libpqxx classes, functions, templates, etc. | |
| namespace | pqxx::internal |
| Internal items for libpqxx' own use. Do not use these yourself. | |
Functions | |
| constexpr char | pqxx::internal::number_to_digit (int i) noexcept |
| Convert a number in [0, 9] to its ASCII digit. | |
| constexpr int | pqxx::internal::digit_to_number (char c) noexcept |
| Compute numeric value of given textual digit (assuming that it is a digit). | |
| std::string | pqxx::internal::state_buffer_overrun (int have_bytes, int need_bytes) |
| Summarize buffer overrun. | |
| template<typename HAVE, typename NEED> | |
| std::string | pqxx::internal::state_buffer_overrun (HAVE have_bytes, NEED need_bytes) |
| void | pqxx::internal::throw_null_conversion (std::string const &type) |
| Throw exception for attempt to convert SQL NULL to given type. | |
| void | pqxx::internal::throw_null_conversion (std::string_view type) |
| Throw exception for attempt to convert SQL NULL to given type. | |
| template<typename T> | |
| PQXX_LIBEXPORT std::string | pqxx::internal::to_string_float (T) |
Floating-point implementations for pqxx::to_string(). | |
| template<typename T> | |
| char * | pqxx::internal::generic_into_buf (char *begin, char *end, T const &value) |
| Generic implementation for into_buf, on top of to_buf. | |
| template<typename T> | |
| constexpr format | pqxx::param_format (std::optional< T > const &value) |
| template<typename... Args> | |
| constexpr format | pqxx::param_format (std::variant< Args... > const &value) |
| template<typename T> | |
| T | pqxx::from_string (std::stringstream const &text) |
| template<typename T, typename... Args> | |
| format | pqxx::param_format (std::unique_ptr< T, Args... > const &value) |
| template<typename T> | |
| format | pqxx::param_format (std::shared_ptr< T > const &value) |
| template<> | |
| constexpr format | pqxx::param_format (bytes const &) |
| template<> | |
| constexpr format | pqxx::param_format (bytes_view const &) |
| template<typename T, typename... Args> | |
| constexpr format | pqxx::param_format (std::vector< T, Args... > const &) |
| We don't know how to pass array params in binary format, so pass as text. | |
| template<typename... Args> | |
| constexpr format | pqxx::param_format (std::vector< std::byte, Args... > const &) |
| A std::vector<std::byte> is a binary string. Other vectors are not. | |
| template<typename T, typename... Args, Args... args> | |
| constexpr format | pqxx::param_format (std::array< T, args... > const &) |
| We don't know how to pass array params in binary format, so pass as text. | |
| template<typename... Args, Args... args> | |
| constexpr format | pqxx::param_format (std::array< std::byte, args... > const &) |
| An array of std::byte is a binary string. | |
| template<typename T> | |
| std::string | pqxx::to_string (T const &value) |
| template<> | |
| std::string | pqxx::to_string (float const &value) |
| template<> | |
| std::string | pqxx::to_string (double const &value) |
| template<> | |
| std::string | pqxx::to_string (long double const &value) |
| template<> | |
| std::string | pqxx::to_string (std::stringstream const &value) |
| template<typename T> | |
| void | pqxx::into_string (T const &value, std::string &out) |