static struct GNUNET_FS_DirectoryBuilder * db
helper functions for Postgres DB interactions
GNUNET_PQ_Options
Flags to control PQ operation.
void GNUNET_PQ_event_reconnect_(struct GNUNET_PQ_Context *db, int fd)
Internal API.
array_types
Internal types that are supported as array types.
struct pq_array_header __attribute__((packed))
Internal representation of the hash map.
Handle to Postgres database.
struct GNUNET_PQ_ExecuteStatement * es
Statements to execute upon connection.
enum GNUNET_PQ_Options flags
Flags controlling the connection.
struct GNUNET_PQ_Context::@35::name2oid * table
struct GNUNET_NETWORK_Handle * rfd
File descriptor wrapper for event_task.
bool prepared_check_patch
Did we prepare the gnunet_pq_check_patch statement?
struct GNUNET_PQ_Context::@35 oids
Mapping between array types and Oid's, pre-filled at reconnect.
unsigned int ps_off
Last used offset in the ps array.
struct GNUNET_SCHEDULER_Task * event_task
Task responsible for processing events.
bool prepared_get_oid_by_name
Did we prepare the gnunet_pq_get_oid_by_name statement?
char * load_path
Path to load SQL files from.
unsigned int ps_len
Length of the ps array.
struct GNUNET_TIME_Relative resubscribe_backoff
How fast should we resubscribe again?
struct GNUNET_PQ_PreparedStatement * ps
Prepared statements.
struct GNUNET_CONTAINER_MultiShortmap * channel_map
Map managing event subscriptions.
char * config_str
Configuration to use to connect to the DB.
PGconn * conn
Actual connection.
char * auto_suffix
Suffix to append to path to load on startup.
Information needed to run a list of SQL statements using GNUNET_PQ_exec_statements().
Information needed to prepare a list of SQL statements using GNUNET_PQ_prepare_statements().
Entry in list of pending tasks.
Time for relative time used by GNUnet, in microseconds.