Handle to Postgres database. More...
#include </home/buildbot/bb-worker/worker/gnunet_release/build/src/lib/pq/pq.h>
Data Fields | ||
| PGconn * | conn | |
| Actual connection. | ||
| GNUNET_PQ_ReconnectCallback | rc | |
| Function to call whenever we needed to reconnect conn. | ||
| GNUNET_PQ_RECONNECT_CALLBACK_CLOSURE * | rc_cls | |
| Closure for rc. | ||
| char * | config_str | |
| Configuration to use to connect to the DB. | ||
| char * | load_path | |
| Path to load SQL files from. | ||
| struct GNUNET_CONTAINER_MultiShortmap * | channel_map | |
| Map managing event subscriptions. | ||
| struct GNUNET_SCHEDULER_Task * | poller_task | |
| Task responsible for polling events directly after having posted an event. | ||
| struct GNUNET_SCHEDULER_Task * | event_task | |
| Task responsible for processing events. | ||
| struct GNUNET_NETWORK_Handle * | rfd | |
| File descriptor wrapper for event_task. | ||
| struct GNUNET_TIME_Relative | resubscribe_backoff | |
| How fast should we resubscribe again? | ||
| enum GNUNET_GenericReturnValue | versioning_ok | |
| Set to GNUNET_OK if versioning schema is properly setup, GNUNET_NO if it is definitively not setup, GNUNET_SYSERR if we do not know. | ||
| bool | prepared_check_patch | |
| Did we prepare the gnunet_pq_check_patch statement? | ||
| bool | prepared_get_oid_by_name | |
| Did we prepare the gnunet_pq_get_oid_by_name statement? | ||
| struct { | ||
| unsigned int cap | ||
| unsigned int num | ||
| struct name2oid { | ||
| const char * name | ||
| Oid oid | ||
| } table | ||
| } | oids | |
| Mapping between array types and Oid's, pre-filled at reconnect. | ||
| PGconn* GNUNET_PQ_Context::conn |
| GNUNET_PQ_ReconnectCallback GNUNET_PQ_Context::rc |
Function to call whenever we needed to reconnect conn.
Definition at line 45 of file pq.h.
Referenced by GNUNET_PQ_init().
| GNUNET_PQ_RECONNECT_CALLBACK_CLOSURE* GNUNET_PQ_Context::rc_cls |
| char* GNUNET_PQ_Context::config_str |
| char* GNUNET_PQ_Context::load_path |
| struct GNUNET_CONTAINER_MultiShortmap* GNUNET_PQ_Context::channel_map |
| struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::poller_task |
| struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::event_task |
| struct GNUNET_NETWORK_Handle* GNUNET_PQ_Context::rfd |
| struct GNUNET_TIME_Relative GNUNET_PQ_Context::resubscribe_backoff |
| enum GNUNET_GenericReturnValue GNUNET_PQ_Context::versioning_ok |
| bool GNUNET_PQ_Context::prepared_check_patch |
| bool GNUNET_PQ_Context::prepared_get_oid_by_name |
| unsigned int GNUNET_PQ_Context::num |
Definition at line 115 of file pq.h.
Referenced by GNUNET_PQ_query_param_array_abs_time(), GNUNET_PQ_query_param_array_bool(), GNUNET_PQ_query_param_array_bytes(), GNUNET_PQ_query_param_array_bytes_same_size(), GNUNET_PQ_query_param_array_ptrs_abs_time(), GNUNET_PQ_query_param_array_ptrs_bytes(), GNUNET_PQ_query_param_array_ptrs_bytes_same_size(), GNUNET_PQ_query_param_array_ptrs_rel_time(), GNUNET_PQ_query_param_array_ptrs_string(), GNUNET_PQ_query_param_array_ptrs_timestamp(), GNUNET_PQ_query_param_array_rel_time(), GNUNET_PQ_query_param_array_string(), GNUNET_PQ_query_param_array_timestamp(), GNUNET_PQ_query_param_array_uint16(), GNUNET_PQ_query_param_array_uint32(), and GNUNET_PQ_query_param_array_uint64().
| struct { ... } ::name2oid * GNUNET_PQ_Context::table |
| struct { ... } GNUNET_PQ_Context::oids |
Mapping between array types and Oid's, pre-filled at reconnect.
More entries are captured in via GNUNET_PQ_get_oid_by_name.