summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_del_purse_not_closed_inconsistencies.c
blob: 51c2a6eb6b3aebb97cd9b88da415c9591574b234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Created by parallels on 27/03/24.
//

#include "pg_del_purse_not_closed_inconsistencies.h"

#include "taler_pq_lib.h"
#include "pg_helper.h"

enum GNUNET_DB_QueryStatus
TAH_PG_del_purse_not_closed_inconsistencies (
  void *cls,
  uint64_t row_id)
{
  struct PostgresClosure *pg = cls;
  struct GNUNET_PQ_QueryParam params[] = {
    GNUNET_PQ_query_param_uint64 (&row_id),
    GNUNET_PQ_query_param_end
  };

  PREPARE (pg,
           "auditor_delete_purse_not_closed_inconsistencies",
           "DELETE"
           " FROM auditor_purse_not_closed_inconsistencies"
           " WHERE row_id=$1;");
  return GNUNET_PQ_eval_prepared_non_select (pg->conn,
                                             "auditor_delete_purse_not_closed_inconsistencies",
                                             params);
}