|
Namespaces |
namespace | pqxx::internal |
| Private namespace for libpqxx's internal use; do not access.
|
Functions |
template<typename T> |
void | pqxx::error_unsupported_type_in_string_conversion (T) |
| Dummy name, used by libpqxx in deliberate link errors.
|
template<typename T> |
PGSTD::string | pqxx::error_ambiguous_string_conversion (T) |
| Dummy name, used to generate meaningful link errors.
|
template<typename T> |
void | pqxx::from_string (const char Str[], T &Obj) |
| Attempt to convert postgres-generated string to given built-in type.
|
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], long &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], unsigned long &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], int &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], unsigned int &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], short &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], unsigned short &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], float &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], double &) |
template<> |
void PQXX_LIBEXPORT | pqxx::from_string (const char Str[], bool &) |
template<> |
void | pqxx::from_string (const char Str[], PGSTD::string &Obj) |
template<> |
void | pqxx::from_string (const char Str[], PGSTD::stringstream &Obj) |
template<typename T> |
void | pqxx::from_string (const PGSTD::string &Str, T &Obj) |
template<typename T> |
void | pqxx::from_string (const PGSTD::stringstream &Str, T &Obj) |
template<> |
void | pqxx::from_string (const PGSTD::string &Str, PGSTD::string &Obj) |
template<> |
void | pqxx::from_string (const char[], char &Obj) |
template<> |
void | pqxx::from_string (const char[], signed char &Obj) |
template<> |
void | pqxx::from_string (const char[], unsigned char &Obj) |
template<> |
void | pqxx::from_string (const PGSTD::string &, char &Obj) |
template<> |
void | pqxx::from_string (const PGSTD::string &, signed char &Obj) |
template<> |
void | pqxx::from_string (const PGSTD::string &, unsigned char &Obj) |
template<typename T> |
PGSTD::string | pqxx::to_string (const T &) |
| Convert built-in type to a readable string that PostgreSQL will understand.
|
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const short &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const unsigned short &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const int &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const unsigned int &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const long &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const unsigned long &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const float &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const double &) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const bool &) |
PGSTD::string | pqxx::to_string (const char Obj[]) |
PGSTD::string | pqxx::to_string (const PGSTD::stringstream &Obj) |
PGSTD::string | pqxx::to_string (const PGSTD::string &Obj) |
template<> |
PGSTD::string PQXX_LIBEXPORT | pqxx::to_string (const char &) |
template<> |
PGSTD::string | pqxx::to_string (const signed char &Obj) |
template<> |
PGSTD::string | pqxx::to_string (const unsigned char &Obj) |
Some conversions are considered to be ambiguous. An example is the conversion between char and string: is the char intended as a character (in which case there are easier ways to accomplish the conversion), or is it being used as merely a very small integral type? And in the latter case, what range is it expected to have--signed, unsigned, or only the range that those two share? An ambiguous conversion attempt will result in a build error, typically a linker message complaining about a missing function whose name starts with "error_". Such errors are always deliberately generated. Look for the function's declaration and see the explanation there.