aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_pq_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_pq_lib.h')
-rw-r--r--src/include/gnunet_pq_lib.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h
index 69cf84583..edb0519b0 100644
--- a/src/include/gnunet_pq_lib.h
+++ b/src/include/gnunet_pq_lib.h
@@ -31,13 +31,13 @@
31#include "gnunet_time_lib.h" 31#include "gnunet_time_lib.h"
32#include "gnunet_util_lib.h" 32#include "gnunet_util_lib.h"
33#include "gnunet_db_lib.h" 33#include "gnunet_db_lib.h"
34#include "postgres_ext.h"
34 35
35/** 36/**
36 * Postgres context. 37 * Postgres context.
37 */ 38 */
38struct GNUNET_PQ_Context; 39struct GNUNET_PQ_Context;
39 40
40
41/* ************************* pq_query_helper.c functions ************************ */ 41/* ************************* pq_query_helper.c functions ************************ */
42 42
43 43
@@ -198,6 +198,18 @@ enum GNUNET_PQ_DataTypes
198}; 198};
199 199
200/** 200/**
201 * Returns the oid for a given datatype
202 *
203 * @param db The db-connection
204 * @param typ the Datatype
205 * @return The oid
206 */
207Oid
208GNUNET_PQ_get_oid (
209 const struct GNUNET_PQ_Context *db,
210 enum GNUNET_PQ_DataTypes typ);
211
212/**
201 * Generate query parameter for an array of bool in host byte order. 213 * Generate query parameter for an array of bool in host byte order.
202 * 214 *
203 * @param num Number of elements in @a elements 215 * @param num Number of elements in @a elements