GNUnet 0.21.1
GNUNET_PQ_Context Struct Reference

Handle to Postgres database. More...

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

Collaboration diagram for GNUNET_PQ_Context:
[legend]

Data Fields

PGconn * conn
 Actual connection. More...
 
struct GNUNET_PQ_ExecuteStatementes
 Statements to execute upon connection. More...
 
struct GNUNET_PQ_PreparedStatementps
 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_MultiShortmapchannel_map
 Map managing event subscriptions. More...
 
struct GNUNET_SCHEDULER_Taskevent_task
 Task responsible for processing events. More...
 
struct GNUNET_NETWORK_Handlerfd
 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...
 

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.

◆ es

struct GNUNET_PQ_ExecuteStatement* GNUNET_PQ_Context::es

◆ ps

struct GNUNET_PQ_PreparedStatement* GNUNET_PQ_Context::ps

Prepared statements.

Definition at line 50 of file pq.h.

◆ ps_len

unsigned int GNUNET_PQ_Context::ps_len

Length of the ps array.

Definition at line 55 of file pq.h.

◆ ps_off

unsigned int GNUNET_PQ_Context::ps_off

Last used offset in the ps array.

Definition at line 60 of file pq.h.

◆ config_str

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

◆ load_path

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

◆ auto_suffix

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

◆ channel_map

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_PQ_Context::channel_map

Map managing event subscriptions.

Definition at line 80 of file pq.h.

◆ event_task

struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::event_task

Task responsible for processing events.

Definition at line 85 of file pq.h.

◆ rfd

struct GNUNET_NETWORK_Handle* GNUNET_PQ_Context::rfd

File descriptor wrapper for event_task.

Definition at line 90 of file pq.h.

◆ resubscribe_backoff

struct GNUNET_TIME_Relative GNUNET_PQ_Context::resubscribe_backoff

How fast should we resubscribe again?

Definition at line 95 of file pq.h.

◆ flags

enum GNUNET_PQ_Options GNUNET_PQ_Context::flags

Flags controlling the connection.

Definition at line 100 of file pq.h.

Referenced by GNUNET_PQ_connect2(), and GNUNET_PQ_connect_with_cfg2().

◆ cap

unsigned int GNUNET_PQ_Context::cap

Definition at line 109 of file pq.h.

◆ num

◆ name

const char* GNUNET_PQ_Context::name

Definition at line 119 of file pq.h.

◆ oid

Oid GNUNET_PQ_Context::oid

Definition at line 120 of file pq.h.

◆ 

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.


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