From 602eecd94aee5a3f90365f59667e86e57615889f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 10 Mar 2017 11:31:27 +0100 Subject: starting conversion of plugin_datastore_sqlite to use libgnunetsq --- src/include/gnunet_sq_lib.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/include/gnunet_sq_lib.h') 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 @@ -181,6 +181,18 @@ struct GNUNET_SQ_QueryParam GNUNET_SQ_query_param_uint64 (const uint64_t *x); +/** + * Execute binding operations for a prepared statement. + * + * @param db_conn database connection + * @param params parameters to the statement + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +GNUNET_SQ_bind (sqlite3_stmt *stmt, + const struct GNUNET_SQ_QueryParam *params); + + /** * Extract data from a Postgres database @a result at row @a row. * @@ -399,18 +411,6 @@ struct GNUNET_SQ_ResultSpec GNUNET_SQ_result_spec_uint64 (uint64_t *u64); -/** - * Execute a prepared statement. - * - * @param db_conn database connection - * @param params parameters to the statement - * @return #GNUNET_OK on success, #GNUNET_SYSERR on error - */ -int -GNUNET_SQ_bind (sqlite3_stmt *stmt, - const struct GNUNET_SQ_QueryParam *params); - - /** * Extract results from a query result according to the given specification. * -- cgit v1.2.3