|
libpqxx
The C++ client library for PostgreSQL
|
You cannot convert a std::byte to/from SQL.
More...
#include <strconv.hxx>
Inheritance diagram for pqxx::string_traits< std::byte >:
Collaboration diagram for pqxx::string_traits< std::byte >:Additional Inherited Members | |
Static Public Member Functions inherited from pqxx::forbidden_conversion< std::byte > | |
| static std::string_view | to_buf (std::span< char >, std::byte const &, ctx={})=delete |
| static std::byte | from_string (std::string_view, ctx={})=delete |
| static std::size_t | size_buffer (std::byte const &) noexcept=delete |
You cannot convert a std::byte to/from SQL.
To convert a raw byte value, use a bytes_view.
For example, to convert a byte b from C++ to SQL, convert the value pqxx::bytes_view{&b, 1} instead.