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. | ||
| struct GNUNET_PQ_ExecuteStatement * | es | |
| Statements to execute upon connection. | ||
| struct GNUNET_PQ_PreparedStatement * | ps | |
| Prepared statements. | ||
| unsigned int | ps_len | |
| Length of the ps array. | ||
| unsigned int | ps_off | |
| Last used offset in the ps array. | ||
| char * | config_str | |
| Configuration to use to connect to the DB. | ||
| char * | load_path | |
| Path to load SQL files from. | ||
| char * | auto_suffix | |
| Suffix to append to path to load on startup. | ||
| 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_PQ_Options | flags | |
| Flags controlling the connection. | ||
| 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. | ||
| struct GNUNET_PQ_ExecuteStatement* GNUNET_PQ_Context::es |
Statements to execute upon connection.
Definition at line 45 of file pq.h.
Referenced by GNUNET_PQ_connect(), GNUNET_PQ_connect2(), GNUNET_PQ_connect_with_cfg(), GNUNET_PQ_connect_with_cfg2(), GNUNET_PQ_event_notify(), and GNUNET_PQ_get_event_notify_channel().
| struct GNUNET_PQ_PreparedStatement* GNUNET_PQ_Context::ps |
| unsigned int GNUNET_PQ_Context::ps_off |
| char* GNUNET_PQ_Context::config_str |
Configuration to use to connect to the DB.
Definition at line 65 of file pq.h.
Referenced by GNUNET_PQ_connect(), and GNUNET_PQ_connect2().
| char* GNUNET_PQ_Context::load_path |
Path to load SQL files from.
Definition at line 70 of file pq.h.
Referenced by GNUNET_PQ_connect(), GNUNET_PQ_connect2(), and GNUNET_PQ_connect_with_cfg2().
| char* GNUNET_PQ_Context::auto_suffix |
Suffix to append to path to load on startup.
Definition at line 75 of file pq.h.
Referenced by GNUNET_PQ_connect2().
| 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_PQ_Options GNUNET_PQ_Context::flags |
Flags controlling the connection.
Definition at line 106 of file pq.h.
Referenced by GNUNET_PQ_connect2(), and GNUNET_PQ_connect_with_cfg2().
| 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 128 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.