aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-10 11:31:27 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-10 11:31:27 +0100
commit602eecd94aee5a3f90365f59667e86e57615889f (patch)
treef8699d0cbe5c64c3cef848ba7d0d9bd8fbbdb8ee /src/include
parentf729024c3472bbdf6575a1cf193ffe07bb0392af (diff)
downloadgnunet-602eecd94aee5a3f90365f59667e86e57615889f.tar.gz
gnunet-602eecd94aee5a3f90365f59667e86e57615889f.zip
starting conversion of plugin_datastore_sqlite to use libgnunetsq
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_sq_lib.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_sq_lib.h b/src/include/gnunet_sq_lib.h
index c03f83e07..4d2510ee5 100644
--- a/src/include/gnunet_sq_lib.h
+++ b/src/include/gnunet_sq_lib.h
@@ -182,6 +182,18 @@ GNUNET_SQ_query_param_uint64 (const uint64_t *x);
182 182
183 183
184/** 184/**
185 * Execute binding operations for a prepared statement.
186 *
187 * @param db_conn database connection
188 * @param params parameters to the statement
189 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
190 */
191int
192GNUNET_SQ_bind (sqlite3_stmt *stmt,
193 const struct GNUNET_SQ_QueryParam *params);
194
195
196/**
185 * Extract data from a Postgres database @a result at row @a row. 197 * Extract data from a Postgres database @a result at row @a row.
186 * 198 *
187 * @param cls closure 199 * @param cls closure
@@ -400,18 +412,6 @@ GNUNET_SQ_result_spec_uint64 (uint64_t *u64);
400 412
401 413
402/** 414/**
403 * Execute a prepared statement.
404 *
405 * @param db_conn database connection
406 * @param params parameters to the statement
407 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
408 */
409int
410GNUNET_SQ_bind (sqlite3_stmt *stmt,
411 const struct GNUNET_SQ_QueryParam *params);
412
413
414/**
415 * Extract results from a query result according to the given specification. 415 * Extract results from a query result according to the given specification.
416 * 416 *
417 * @param result result to process 417 * @param result result to process