From f4a172abf3afabf677c59020c6fabc76b87b3f22 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 24 Jan 2020 16:51:29 +0100 Subject: export GNUNET_PQ_run_sql() functonality --- src/include/gnunet_pq_lib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h index 53d2549c2..090e81331 100644 --- a/src/include/gnunet_pq_lib.h +++ b/src/include/gnunet_pq_lib.h @@ -779,6 +779,20 @@ void GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db); +/** + * Within the @a db context, run all the SQL files + * from the @a load_path from 0000-9999.sql (as long + * as the files exist contiguously). + * + * @param db database context to use + * @param load_path where to find the XXXX.sql files + * @return #GNUNET_OK on success + */ +int +GNUNET_PQ_run_sql (struct GNUNET_PQ_Context *db, + const char *load_path); + + /** * Disconnect from the database, destroying the prepared statements * and releasing other associated resources. -- cgit v1.2.3