libpqxx
|
Private namespace for libpqxx's internal use; do not access. More...
Namespaces | |
gate | |
Classes | |
class | basic_robusttransaction |
Helper base class for the robusttransaction class template. More... | |
class | basic_transaction |
Helper base class for the transaction class template. More... | |
class | Escaper |
class | namedclass |
Helper base class: object descriptions for error messages and such. More... | |
class | parameterized_invocation |
Helper class to construct an invocation of a parameterised statement. More... | |
class | reactivation_avoidance_counter |
class | reactivation_avoidance_exemption |
Scoped exemption to reactivation avoidance. More... | |
class | sql_cursor |
Cursor with SQL positioning semantics. More... | |
class | transactionfocus |
class | unique |
Ensure proper opening/closing of GUEST objects related to a "host" object. More... | |
Typedefs | |
using | cstring = const char * |
Work around problem with library export directives and pointers. More... | |
Functions | |
void | wait_read (const internal::pq::PGconn *) |
void | wait_read (const internal::pq::PGconn *, long seconds, long microseconds) |
void | wait_write (const internal::pq::PGconn *) |
result_size_type | obtain_stateless_cursor_size (sql_cursor &) |
result | stateless_cursor_retrieve (sql_cursor &, result::difference_type size, result::difference_type begin_pos, result::difference_type end_pos) |
void | clear_result (const pq::PGresult *) |
C++ wrapper for libpq's PQclear. More... | |
void | throw_null_conversion (const std::string &type) |
Throw exception for attempt to convert null to given type. More... | |
int | digit_to_number (char c) noexcept |
Compute numeric value of given textual digit (assuming that it is a digit) More... | |
char | number_to_digit (int i) noexcept |
std::string | escape (const std::string &s, const std::string &null) |
std::string | escape_any (const std::string &s, const std::string &null) |
std::string | escape_any (const char s[], const std::string &null) |
template<typename T > | |
std::string | escape_any (const T &t, const std::string &null) |
void | freepqmem (const void *) noexcept |
template<typename P > | |
void | freepqmem_templated (P *p) noexcept |
void | freemallocmem (const void *) noexcept |
template<typename P > | |
void | freemallocmem_templated (P *p) noexcept |
void | CheckUniqueRegistration (const namedclass *New, const namedclass *Old) |
void | CheckUniqueUnregistration (const namedclass *New, const namedclass *Old) |
void | sleep_seconds (int) |
Sleep for the given number of seconds. More... | |
Variables | |
constexpr char | sql_begin_work [] = "BEGIN" |
Commonly used SQL commands. More... | |
constexpr char | sql_commit_work [] = "COMMIT" |
constexpr char | sql_rollback_work [] = "ROLLBACK" |
Private namespace for libpqxx's internal use; do not access.
This namespace hides definitions internal to libpqxx. These are not supposed to be used by client programs, and they may change at any time without notice.
Conversely, if you find something in this namespace tremendously useful, by all means do lodge a request for its publication.
using pqxx::internal::cstring = typedef const char * |
Work around problem with library export directives and pointers.
void pqxx::internal::CheckUniqueRegistration | ( | const namedclass * | New, |
const namedclass * | Old | ||
) |
References pqxx::internal::namedclass::description().
Referenced by pqxx::internal::namedclass::classname().
void pqxx::internal::CheckUniqueUnregistration | ( | const namedclass * | New, |
const namedclass * | Old | ||
) |
References pqxx::internal::namedclass::description().
Referenced by pqxx::internal::namedclass::classname().
void pqxx::internal::clear_result | ( | const pq::PGresult * | data | ) |
C++ wrapper for libpq's PQclear.
Implementation of the pqxx::result class and support classes.
pqxx::result represents the set of result rows from a database query
Copyright (c) 2001-2017, Jeroen T. Vermeulen.
See COPYING for copyright license. If you did not receive a file called COPYING with this source code, please notify the distributor of this mistake, or contact the author.
References pqxx::result::result().
Referenced by pqxx::result::table_column().
|
noexcept |
Compute numeric value of given textual digit (assuming that it is a digit)
References digit_to_number().
Referenced by pqxx::tablereader::complete(), and digit_to_number().
std::string pqxx::internal::escape | ( | const std::string & | s, |
const std::string & | null | ||
) |
std::string pqxx::internal::escape_any | ( | const std::string & | s, |
const std::string & | null | ||
) |
References escape_any().
Referenced by escape_any(), and pqxx::internal::Escaper< IT >::operator()().
std::string pqxx::internal::escape_any | ( | const char | s[], |
const std::string & | null | ||
) |
References escape_any().
std::string pqxx::internal::escape_any | ( | const T & | t, |
const std::string & | null | ||
) |
References escape_any(), and pqxx::to_string().
|
noexcept |
Referenced by freemallocmem_templated(), and freepqmem_templated().
|
noexcept |
References freemallocmem(), and freemallocmem_templated().
Referenced by freemallocmem_templated().
|
noexcept |
Referenced by freepqmem_templated().
|
noexcept |
References freemallocmem(), freepqmem(), and freepqmem_templated().
Referenced by freepqmem_templated().
|
noexcept |
References number_to_digit().
Referenced by pqxx::tablewriter::complete(), and number_to_digit().
result::size_type pqxx::internal::obtain_stateless_cursor_size | ( | sql_cursor & | cur | ) |
void pqxx::internal::sleep_seconds | ( | int | s | ) |
Sleep for the given number of seconds.
May return early, e.g. when interrupted by a signal. Completes instantly if a zero or negative sleep time is requested.
Referenced by pqxx::internal::unique< pqxx::transaction_base >::unregister_guest(), and pqxx::internal::basic_robusttransaction::~basic_robusttransaction().
result pqxx::internal::stateless_cursor_retrieve | ( | sql_cursor & | cur, |
result::difference_type | size, | ||
result::difference_type | begin_pos, | ||
result::difference_type | end_pos | ||
) |
void pqxx::internal::throw_null_conversion | ( | const std::string & | type | ) |
Throw exception for attempt to convert null to given type.
References pqxx::from_string(), and pqxx::to_string().
Referenced by pqxx::string_traits< std::string >::null(), pqxx::string_traits< const std::string >::null(), and pqxx::string_traits< std::stringstream >::null().
void pqxx::internal::wait_read | ( | const internal::pq::PGconn * | ) |
Referenced by pqxx::connection_base::await_notification(), pqxx::internal::reactivation_avoidance_exemption::close_connection(), pqxx::connect_async::do_completeconnect(), pqxx::connection_base::get_verbosity(), pqxx::connection_base::wait_read(), and pqxx::internal::reactivation_avoidance_exemption::~reactivation_avoidance_exemption().
void pqxx::internal::wait_read | ( | const internal::pq::PGconn * | , |
long | seconds, | ||
long | microseconds | ||
) |
void pqxx::internal::wait_write | ( | const internal::pq::PGconn * | ) |
constexpr char pqxx::internal::sql_begin_work[] = "BEGIN" |
Commonly used SQL commands.
constexpr char pqxx::internal::sql_commit_work[] = "COMMIT" |
constexpr char pqxx::internal::sql_rollback_work[] = "ROLLBACK" |
Referenced by pqxx::dbtransaction::do_abort().