libpqxx
7.9.0
|
String traits for a forbidden type conversion. More...
#include <strconv.hxx>
Static Public Member Functions | |
static zview | to_buf (char *, char *, TYPE const &) |
static char * | into_buf (char *, char *, TYPE const &) |
static TYPE | from_string (std::string_view) |
static std::size_t | size_buffer (TYPE const &) noexcept |
Static Public Attributes | |
static constexpr bool | converts_to_string {false} |
static constexpr bool | converts_from_string {false} |
String traits for a forbidden type conversion.
If you have a C++ type for which you explicitly wish to forbid SQL conversion, you can derive a pqxx::string_traits specialisation for that type from this struct. Any attempt to convert the type will then fail to build, and produce an error mentioning oops_forbidden_conversion.
|
static |
|
static |
|
staticnoexcept |
|
static |
|
staticconstexpr |
|
staticconstexpr |