53 for (
unsigned int i = 0; NULL !=
ps[i].sql; i++)
55 const char *epos = NULL;
59 (
ret = sqlite3_prepare_v2 (dbh,
66 "Failed to prepare SQL `%s': error %d at %s\n",
static int ret
Final status code.
static struct GNUNET_PEERSTORE_Handle * ps
Handle to the PEERSTORE service.
helper functions for Sqlite3 DB interactions
#define GNUNET_log(kind,...)
GNUNET_GenericReturnValue
Named constants for return values.
@ GNUNET_ERROR_TYPE_ERROR
struct GNUNET_SQ_PrepareStatement GNUNET_SQ_make_prepare(const char *sql, sqlite3_stmt **pstmt)
Create a struct GNUNET_SQ_PrepareStatement
enum GNUNET_GenericReturnValue GNUNET_SQ_prepare(sqlite3 *dbh, const struct GNUNET_SQ_PrepareStatement *ps)
Prepare all statements given in the (NULL,NULL)-terminated array at ps.
Information needed to run a list of SQL statements using GNUNET_SQ_exec_statements().
const char * sql
Actual SQL statement.
sqlite3_stmt ** pstmt
Where to store handle?