libpqxx
The C++ client library for PostgreSQL
pqxx::string_traits< CONT > Struct Template Referencefinal

A container of nonbinary data can represent a 1-dimensional SQL array. More...

#include <array.hxx>

+ Inheritance diagram for pqxx::string_traits< CONT >:
+ Collaboration diagram for pqxx::string_traits< CONT >:

Static Public Member Functions

static CONT from_string (std::string_view text, ctx c={})
 
- Static Public Member Functions inherited from pqxx::internal::nonbinary_range_traits< CONT >
static std::size_t size_buffer (CONT const &value) noexcept
 
static std::string_view to_buf (std::span< char > buf, CONT const &value, ctx c={})
 

Additional Inherited Members

- Public Types inherited from pqxx::internal::nonbinary_range_traits< CONT >
using elt_type = std::remove_cvref_t< value_type< CONT > >
 
using elt_traits = string_traits< elt_type >
 
- Static Public Attributes inherited from pqxx::internal::nonbinary_range_traits< CONT >
static constexpr zview s_null
 

Detailed Description

template<pqxx::internal::nonbinary_container CONT>
struct pqxx::string_traits< CONT >

A container of nonbinary data can represent a 1-dimensional SQL array.

This does not define a conversion to an SQL string; we leave that to the `specialisation for nonbinary ranges.

Member Function Documentation

◆ from_string()

template<pqxx::internal::nonbinary_container CONT>
static CONT pqxx::string_traits< CONT >::from_string ( std::string_view  text,
ctx  c = {} 
)
inlinestatic

The documentation for this struct was generated from the following file: