GNUnet debian-0.24.3-28-g4f2a77692
 
Loading...
Searching...
No Matches
GNUNET_PQ_ResultSpec Struct Reference

Description of a DB result cell. More...

#include <gnunet_pq_lib.h>

Data Fields

GNUNET_PQ_ResultConverter conv
 What is the format of the result?
 
GNUNET_PQ_ResultCleanup cleaner
 Function to clean up result data, NULL if cleanup is not necessary.
 
void * cls
 Closure for conv and cleaner.
 
void * dst
 Destination for the data.
 
size_t dst_size
 Allowed size for the data, 0 for variable-size (in this case, the type of dst is a void ** and we need to allocate a buffer of the right size).
 
const char * fname
 Field name of the desired result.
 
size_t * result_size
 Where to store actual size of the result.
 
bool is_nullable
 True if NULL is allowed for a value in the database.
 
bool * is_null
 Points to a location where we should store "true" if the result found is NULL, and otherwise "false".
 

Detailed Description

Description of a DB result cell.

Definition at line 710 of file gnunet_pq_lib.h.

Field Documentation

◆ conv

◆ cleaner

GNUNET_PQ_ResultCleanup GNUNET_PQ_ResultSpec::cleaner

Function to clean up result data, NULL if cleanup is not necessary.

Definition at line 720 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_cleanup_result(), and GNUNET_PQ_extract_result().

◆ cls

◆ dst

◆ dst_size

◆ fname

◆ result_size

size_t* GNUNET_PQ_ResultSpec::result_size

Where to store actual size of the result.

Definition at line 747 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_extract_result().

◆ is_nullable

bool GNUNET_PQ_ResultSpec::is_nullable

True if NULL is allowed for a value in the database.

Definition at line 752 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_extract_result(), and GNUNET_PQ_result_spec_allow_null().

◆ is_null

bool* GNUNET_PQ_ResultSpec::is_null

Points to a location where we should store "true" if the result found is NULL, and otherwise "false".

Only used if is_nullable is true.

Definition at line 758 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_extract_result(), and GNUNET_PQ_result_spec_allow_null().


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