diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-10 11:31:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-10 11:31:27 +0100 |
commit | 602eecd94aee5a3f90365f59667e86e57615889f (patch) | |
tree | f8699d0cbe5c64c3cef848ba7d0d9bd8fbbdb8ee /src/include | |
parent | f729024c3472bbdf6575a1cf193ffe07bb0392af (diff) | |
download | gnunet-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.h | 24 |
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 | */ | ||
191 | int | ||
192 | GNUNET_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 | */ | ||
409 | int | ||
410 | GNUNET_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 |