helper functions for executing SQL statements More...
Go to the source code of this file.
Functions | |
struct GNUNET_SQ_ExecuteStatement | GNUNET_SQ_make_execute (const char *sql) |
Create a struct GNUNET_SQ_ExecuteStatement where errors are fatal. More... | |
struct GNUNET_SQ_ExecuteStatement | GNUNET_SQ_make_try_execute (const char *sql) |
Create a struct GNUNET_SQ_ExecuteStatement where errors should be tolerated. More... | |
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. More... | |
helper functions for executing SQL statements
Definition in file sq_exec.c.
struct GNUNET_SQ_ExecuteStatement GNUNET_SQ_make_execute | ( | const char * | sql | ) |
Create a struct GNUNET_SQ_ExecuteStatement
where errors are fatal.
sql | actual SQL statement |
Definition at line 1 of file sq_exec.c.
Referenced by database_setup().
struct GNUNET_SQ_ExecuteStatement GNUNET_SQ_make_try_execute | ( | const char * | sql | ) |
Create a struct GNUNET_SQ_ExecuteStatement
where errors should be tolerated.
sql | actual SQL statement |
Definition at line 1 of file sq_exec.c.
Referenced by database_setup().
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.
dbh | database to execute the statements over |
es | GNUNET_PQ_PREPARED_STATEMENT_END-terminated array of prepared statements. |
Definition at line 1 of file sq_exec.c.
References GNUNET_NO, and GNUNET_SQ_ExecuteStatement::sql.
Referenced by database_setup().