Handle to Postgres database. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/lib/pq/pq.h>
Data Fields | |
PGconn * | conn |
Actual connection. More... | |
struct GNUNET_PQ_ExecuteStatement * | es |
Statements to execute upon connection. More... | |
struct GNUNET_PQ_PreparedStatement * | ps |
Prepared statements. More... | |
unsigned int | ps_len |
Length of the ps array. More... | |
unsigned int | ps_off |
Last used offset in the ps array. More... | |
char * | config_str |
Configuration to use to connect to the DB. More... | |
char * | load_path |
Path to load SQL files from. More... | |
char * | auto_suffix |
Suffix to append to path to load on startup. More... | |
struct GNUNET_CONTAINER_MultiShortmap * | channel_map |
Map managing event subscriptions. More... | |
struct GNUNET_SCHEDULER_Task * | event_task |
Task responsible for processing events. More... | |
struct GNUNET_NETWORK_Handle * | rfd |
File descriptor wrapper for event_task. More... | |
struct GNUNET_TIME_Relative | resubscribe_backoff |
How fast should we resubscribe again? More... | |
enum GNUNET_PQ_Options | flags |
Flags controlling the connection. More... | |
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. More... | |
struct GNUNET_PQ_ExecuteStatement* GNUNET_PQ_Context::es |
Statements to execute upon connection.
Definition at line 45 of file pq.h.
Referenced by GNUNET_PG_get_event_notify_channel(), GNUNET_PQ_connect(), GNUNET_PQ_connect2(), GNUNET_PQ_connect_with_cfg(), and GNUNET_PQ_connect_with_cfg2().
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::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 90 of file pq.h.
Referenced by GNUNET_PQ_connect2(), and GNUNET_PQ_connect_with_cfg2().
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.