79 for (
unsigned int i = 0; NULL != es[i].
sql; i++)
93 "Failed to run SQL `%s': %s\n",
100 "Failed to run SQL `%s': %s\n",
helper functions for Sqlite3 DB interactions
#define GNUNET_log(kind,...)
GNUNET_GenericReturnValue
Named constants for return values.
@ GNUNET_ERROR_TYPE_ERROR
@ GNUNET_ERROR_TYPE_DEBUG
struct GNUNET_SQ_ExecuteStatement GNUNET_SQ_make_execute(const char *sql)
Create a struct GNUNET_SQ_ExecuteStatement where errors are fatal.
struct GNUNET_SQ_ExecuteStatement GNUNET_SQ_make_try_execute(const char *sql)
Create a struct GNUNET_SQ_ExecuteStatement where errors should be tolerated.
enum GNUNET_GenericReturnValue GNUNET_SQ_exec_statements(sqlite3 *dbh, const struct GNUNET_SQ_ExecuteStatement *es)
Request execution of an array of statements es from Postgres.
Information needed to run a list of SQL statements using GNUNET_SQ_exec_statements().
bool ignore_errors
Should we ignore errors?
const char * sql
Actual SQL statement.