GNUnet 0.28.0-dev.2-27-gc87478450
 
Loading...
Searching...
No Matches
GNUNET_PQ_Context Struct Reference

Handle to Postgres database. More...

#include </home/buildbot/bb-worker/worker/gnunet_release/build/src/lib/pq/pq.h>

Collaboration diagram for GNUNET_PQ_Context:
[legend]

Data Fields

PGconn * conn
 Actual connection.
 
GNUNET_PQ_ReconnectCallback rc
 Function to call whenever we needed to reconnect conn.
 
GNUNET_PQ_RECONNECT_CALLBACK_CLOSURErc_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_MultiShortmapchannel_map
 Map managing event subscriptions.
 
struct GNUNET_SCHEDULER_Taskpoller_task
 Task responsible for polling events directly after having posted an event.
 
struct GNUNET_SCHEDULER_Taskevent_task
 Task responsible for processing events.
 
struct GNUNET_NETWORK_Handlerfd
 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.
 

Detailed Description

Handle to Postgres database.

Definition at line 35 of file pq.h.

Field Documentation

◆ conn

PGconn* GNUNET_PQ_Context::conn

Actual connection.

Definition at line 40 of file pq.h.

Referenced by GNUNET_PQ_prepare_anon().

◆ rc

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().

◆ rc_cls

GNUNET_PQ_RECONNECT_CALLBACK_CLOSURE* GNUNET_PQ_Context::rc_cls

Closure for rc.

Definition at line 50 of file pq.h.

Referenced by GNUNET_PQ_init().

◆ config_str

char* GNUNET_PQ_Context::config_str

Configuration to use to connect to the DB.

Definition at line 55 of file pq.h.

◆ load_path

char* GNUNET_PQ_Context::load_path

Path to load SQL files from.

Definition at line 60 of file pq.h.

Referenced by GNUNET_PQ_init().

◆ channel_map

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_PQ_Context::channel_map

Map managing event subscriptions.

Definition at line 65 of file pq.h.

◆ poller_task

struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::poller_task

Task responsible for polling events directly after having posted an event.

Definition at line 71 of file pq.h.

◆ event_task

struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::event_task

Task responsible for processing events.

Definition at line 76 of file pq.h.

◆ rfd

struct GNUNET_NETWORK_Handle* GNUNET_PQ_Context::rfd

File descriptor wrapper for event_task.

Definition at line 81 of file pq.h.

◆ resubscribe_backoff

struct GNUNET_TIME_Relative GNUNET_PQ_Context::resubscribe_backoff

How fast should we resubscribe again?

Definition at line 86 of file pq.h.

◆ versioning_ok

enum GNUNET_GenericReturnValue GNUNET_PQ_Context::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.

Definition at line 93 of file pq.h.

◆ prepared_check_patch

bool GNUNET_PQ_Context::prepared_check_patch

Did we prepare the gnunet_pq_check_patch statement?

Definition at line 98 of file pq.h.

◆ prepared_get_oid_by_name

bool GNUNET_PQ_Context::prepared_get_oid_by_name

Did we prepare the gnunet_pq_get_oid_by_name statement?

Definition at line 103 of file pq.h.

◆ cap

unsigned int GNUNET_PQ_Context::cap

Definition at line 112 of file pq.h.

◆ num

◆ name

const char* GNUNET_PQ_Context::name

Definition at line 122 of file pq.h.

◆ oid

Oid GNUNET_PQ_Context::oid

Definition at line 123 of file pq.h.

◆ [struct]

struct { ... } ::name2oid * GNUNET_PQ_Context::table

◆ [struct]

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.


The documentation for this struct was generated from the following file: