61 for (
unsigned int i = 0; NULL != ps[i].
sql; i++)
63 const char *epos = NULL;
67 (
ret = sqlite3_prepare_v2 (dbh,
74 "Failed to prepare SQL `%s': error %d at %s\n",
static int ret
Return value of the commandline.
#define GNUNET_log(kind,...)
helper functions for Sqlite3 DB interactions
@ GNUNET_ERROR_TYPE_ERROR
struct GNUNET_SQ_PrepareStatement GNUNET_SQ_make_prepare(const char *sql, sqlite3_stmt **pstmt)
Create a struct GNUNET_SQ_PrepareStatement
int 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?