diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-21 14:44:13 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-21 14:44:13 +0100 |
commit | 0c46527c2b83311f4d2758379f901f367de42ca5 (patch) | |
tree | 679da9f3ee2268c6ce19b4d04d32b4f855bd477a /src/backenddb | |
parent | 24b919d917860e5cb2e774d44e8b80990940ba29 (diff) | |
download | merchant-0c46527c2b83311f4d2758379f901f367de42ca5.tar.gz merchant-0c46527c2b83311f4d2758379f901f367de42ca5.tar.bz2 merchant-0c46527c2b83311f4d2758379f901f367de42ca5.zip |
-typos
Diffstat (limited to 'src/backenddb')
-rw-r--r-- | src/backenddb/merchant-0004.sql | 9 | ||||
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 50 |
2 files changed, 28 insertions, 31 deletions
diff --git a/src/backenddb/merchant-0004.sql b/src/backenddb/merchant-0004.sql index 4a91911d..0e8428ca 100644 --- a/src/backenddb/merchant-0004.sql +++ b/src/backenddb/merchant-0004.sql @@ -15,11 +15,10 @@ -- -/** - * @file merchant-004.sql - * @brief database helper functions for postgres used by the merchant and funtion for plugin_merchantdb_postgres.c - * @author Priscilla Huang - */ +-- @file merchant-0004.sql +-- @brief database helper functions for postgres used by the merchant and function for plugin_merchantdb_postgres.c +-- @author Priscilla Huang + BEGIN; -- Check patch versioning is in place. diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 692d7912..41cd8154 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -1298,6 +1298,7 @@ lookup_products_cb (void *cls, } } + /** * Lookup all of the products the given instance has configured. * @@ -1339,7 +1340,6 @@ postgres_lookup_products (void *cls, } - /** * Lookup details about a particular product. * @@ -6815,7 +6815,6 @@ postgres_insert_pickup_blind_signature ( } - /** * Delete information about a template. * @@ -6823,12 +6822,12 @@ postgres_insert_pickup_blind_signature ( * @param instance_id instance to delete template of * @param template_id template to delete * @return DB status code, #GNUNET_DB_STATUS_SUCCESS_NO_RESULTS - * if template unknow. + * if template unknown. */ static enum GNUNET_DB_QueryStatus postgres_delete_template (void *cls, - const char *instance_id, - const char *template_id) + const char *instance_id, + const char *template_id) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { @@ -6843,6 +6842,7 @@ postgres_delete_template (void *cls, params); } + /** * Insert details about a particular template. * @@ -6854,9 +6854,9 @@ postgres_delete_template (void *cls, */ static enum GNUNET_DB_QueryStatus postgres_insert_template (void *cls, - const char *instance_id, - const char *template_id, - const struct TALER_MERCHANTDB_TemplateDetails *pd) + const char *instance_id, + const char *template_id, + const struct TALER_MERCHANTDB_TemplateDetails *pd) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { @@ -6875,6 +6875,7 @@ postgres_insert_template (void *cls, params); } + /** * Update details about a particular template. * @@ -6888,9 +6889,9 @@ postgres_insert_template (void *cls, */ static enum GNUNET_DB_QueryStatus postgres_update_template (void *cls, - const char *instance_id, - const char *template_id, - const struct TALER_MERCHANTDB_TemplateDetails *pd) + const char *instance_id, + const char *template_id, + const struct TALER_MERCHANTDB_TemplateDetails *pd) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { @@ -6910,8 +6911,6 @@ postgres_update_template (void *cls, } - - /** * Context used for postgres_lookup_template(). */ @@ -6944,8 +6943,8 @@ struct LookupTemplateContext */ static void lookup_templates_cb (void *cls, - PGresult *result, - unsigned int num_results) + PGresult *result, + unsigned int num_results) { struct LookupTemplateContext *tlc = cls; @@ -6957,7 +6956,7 @@ lookup_templates_cb (void *cls, GNUNET_PQ_result_spec_string ("template_id", &template_id), GNUNET_PQ_result_spec_string ("template_description", - &template_description), + &template_description), GNUNET_PQ_result_spec_end }; @@ -6989,9 +6988,9 @@ lookup_templates_cb (void *cls, */ static enum GNUNET_DB_QueryStatus postgres_lookup_templates (void *cls, - const char *instance_id, - TALER_MERCHANTDB_TemplatesCallback cb, - void *cb_cls) + const char *instance_id, + TALER_MERCHANTDB_TemplatesCallback cb, + void *cb_cls) { struct PostgresClosure *pg = cls; struct LookupTemplateContext tlc = { @@ -7018,6 +7017,7 @@ postgres_lookup_templates (void *cls, return qs; } + /** * Lookup details about a particular template. * @@ -7030,9 +7030,9 @@ postgres_lookup_templates (void *cls, */ static enum GNUNET_DB_QueryStatus postgres_lookup_template (void *cls, - const char *instance_id, - const char *template_id, - struct TALER_MERCHANTDB_TemplateDetails *pd) + const char *instance_id, + const char *template_id, + struct TALER_MERCHANTDB_TemplateDetails *pd) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { @@ -7061,7 +7061,7 @@ postgres_lookup_template (void *cls, GNUNET_PQ_result_spec_string ("image", &pd->image), TALER_PQ_result_spec_json ("template_contract", - &pd->template_contract), + &pd->template_contract), GNUNET_PQ_result_spec_end }; @@ -7074,8 +7074,6 @@ postgres_lookup_template (void *cls, } - - /** * Establish connection to the database. * @@ -9590,7 +9588,7 @@ postgres_connect (void *cls) if (NULL == pg->conn) return GNUNET_SYSERR; return GNUNET_OK; - }; +}; /** |