|
libpqxx
The C++ client library for PostgreSQL
|
String traits for SQL arrays. More...
#include <conversions.hxx>
Inheritance diagram for pqxx::string_traits< T >:
Collaboration diagram for pqxx::string_traits< T >:Additional Inherited Members | |
Public Types inherited from pqxx::internal::nonbinary_range_traits< T > | |
| using | elt_type = std::remove_cvref_t< value_type< T > > |
| using | elt_traits = string_traits< elt_type > |
Static Public Member Functions inherited from pqxx::internal::nonbinary_range_traits< T > | |
| static std::size_t | size_buffer (T const &value) noexcept |
| static std::string_view | to_buf (std::span< char > buf, T const &value, ctx c={}) |
Static Public Attributes inherited from pqxx::internal::nonbinary_range_traits< T > | |
| static constexpr zview | s_null {"NULL"} |
String traits for SQL arrays.
This is a very generic implementation, It doesn't carry enough type information about the container to support parsing of a string into an array of a more or less arbitrary C++ type, but it's handy for converting various container types to strings.