aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-24 16:30:45 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-24 16:30:45 +0100
commit2fd320bc7263b1dadd8fbead1004e9ee8b822f45 (patch)
treed94235b28665834c8b82175fa30360cd0ec6acb0 /src/include
parentf69dbeee28ec0cacf4ed1ffc4601b59a9178c794 (diff)
downloadgnunet-2fd320bc7263b1dadd8fbead1004e9ee8b822f45.tar.gz
gnunet-2fd320bc7263b1dadd8fbead1004e9ee8b822f45.zip
modify GNUNET_PQ_connect_with_cfg to enable flexible loading of .sql files
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_pq_lib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gnunet_pq_lib.h b/src/include/gnunet_pq_lib.h
index 8b32a9265..53d2549c2 100644
--- a/src/include/gnunet_pq_lib.h
+++ b/src/include/gnunet_pq_lib.h
@@ -742,8 +742,12 @@ GNUNET_PQ_connect (const char *config_str,
742 * statements in @a es are executed whenever we (re)connect to the 742 * statements in @a es are executed whenever we (re)connect to the
743 * database, and that the prepared statements in @a ps are "ready". 743 * database, and that the prepared statements in @a ps are "ready".
744 * 744 *
745 * The caller does not have to ensure that @a es and @a ps remain allocated
746 * and initialized in memory until #GNUNET_PQ_disconnect() is called, as a copy will be made.
747 *
745 * @param cfg configuration 748 * @param cfg configuration
746 * @param section configuration section to use to get Postgres configuration options 749 * @param section configuration section to use to get Postgres configuration options
750 * @param load_path_suffix suffix to append to the SQL_DIR in the configuration
747 * @param es #GNUNET_PQ_PREPARED_STATEMENT_END-terminated 751 * @param es #GNUNET_PQ_PREPARED_STATEMENT_END-terminated
748 * array of statements to execute upon EACH connection, can be NULL 752 * array of statements to execute upon EACH connection, can be NULL
749 * @param ps array of prepared statements to prepare, can be NULL 753 * @param ps array of prepared statements to prepare, can be NULL
@@ -752,6 +756,7 @@ GNUNET_PQ_connect (const char *config_str,
752struct GNUNET_PQ_Context * 756struct GNUNET_PQ_Context *
753GNUNET_PQ_connect_with_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, 757GNUNET_PQ_connect_with_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg,
754 const char *section, 758 const char *section,
759 const char *load_path,
755 const struct GNUNET_PQ_ExecuteStatement *es, 760 const struct GNUNET_PQ_ExecuteStatement *es,
756 const struct GNUNET_PQ_PreparedStatement *ps); 761 const struct GNUNET_PQ_PreparedStatement *ps);
757 762