diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-24 16:51:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-24 16:51:29 +0100 |
commit | f4a172abf3afabf677c59020c6fabc76b87b3f22 (patch) | |
tree | 19adfe6019fa9d364d54c19c8e9e50b82e06168a /src/include | |
parent | 2fd320bc7263b1dadd8fbead1004e9ee8b822f45 (diff) | |
download | gnunet-f4a172abf3afabf677c59020c6fabc76b87b3f22.tar.gz gnunet-f4a172abf3afabf677c59020c6fabc76b87b3f22.zip |
export GNUNET_PQ_run_sql() functonality
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_pq_lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 | |||
@@ -780,6 +780,20 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db); | |||
780 | 780 | ||
781 | 781 | ||
782 | /** | 782 | /** |
783 | * Within the @a db context, run all the SQL files | ||
784 | * from the @a load_path from 0000-9999.sql (as long | ||
785 | * as the files exist contiguously). | ||
786 | * | ||
787 | * @param db database context to use | ||
788 | * @param load_path where to find the XXXX.sql files | ||
789 | * @return #GNUNET_OK on success | ||
790 | */ | ||
791 | int | ||
792 | GNUNET_PQ_run_sql (struct GNUNET_PQ_Context *db, | ||
793 | const char *load_path); | ||
794 | |||
795 | |||
796 | /** | ||
783 | * Disconnect from the database, destroying the prepared statements | 797 | * Disconnect from the database, destroying the prepared statements |
784 | * and releasing other associated resources. | 798 | * and releasing other associated resources. |
785 | * | 799 | * |