GNUnet  0.16.x
Data Fields
GNUNET_PQ_Context Struct Reference

Handle to Postgres database. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/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...
 
char * config_str
 Configuration to use to connect to the DB. More...
 
char * load_path
 Path to load SQL files from. 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...
 
enum GNUNET_PQ_Options flags
 Flags controlling the connection. 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

Statements to execute upon connection.

Definition at line 45 of file pq.h.

Referenced by apply_patch(), GNUNET_PQ_connect(), GNUNET_PQ_connect_with_cfg(), and GNUNET_PQ_connect_with_cfg2().

◆ ps

struct GNUNET_PQ_PreparedStatement* GNUNET_PQ_Context::ps

Prepared statements.

Definition at line 50 of file pq.h.

Referenced by apply_patch(), GNUNET_PQ_connect(), GNUNET_PQ_connect_with_cfg(), and GNUNET_PQ_connect_with_cfg2().

◆ config_str

char* GNUNET_PQ_Context::config_str

Configuration to use to connect to the DB.

Definition at line 55 of file pq.h.

Referenced by apply_patch(), and GNUNET_PQ_connect().

◆ load_path

char* GNUNET_PQ_Context::load_path

Path to load SQL files from.

Definition at line 60 of file pq.h.

Referenced by apply_patch(), GNUNET_PQ_connect(), and GNUNET_PQ_connect_with_cfg2().

◆ channel_map

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_PQ_Context::channel_map

Map managing event subscriptions.

Definition at line 65 of file pq.h.

◆ event_task

struct GNUNET_SCHEDULER_Task* GNUNET_PQ_Context::event_task

Task responsible for processing events.

Definition at line 70 of file pq.h.

◆ rfd

struct GNUNET_NETWORK_Handle* GNUNET_PQ_Context::rfd

File descriptor wrapper for event_task.

Definition at line 75 of file pq.h.

◆ flags

enum GNUNET_PQ_Options GNUNET_PQ_Context::flags

Flags controlling the connection.

Definition at line 75 of file pq.h.

Referenced by apply_patch(), and GNUNET_PQ_connect_with_cfg2().


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