plugin_exchangedb_postgres.h (1417B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2014--2023 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 17 /** 18 * @file plugin_exchangedb_postgres.h 19 * @brief Low-level (statement-level) Postgres database access for the exchange 20 * @author Florian Dold 21 * @author Christian Grothoff 22 * @author Sree Harsha Totakura 23 * @author Marcello Stanisci 24 * @author Özgür Kesim 25 */ 26 #ifndef PLUGIN_EXCHANGEDB_POSTGRES_H 27 #define PLUGIN_EXCHANGEDB_POSTGRES_H 28 #include "taler/platform.h" 29 #include "taler/taler_error_codes.h" 30 #include "taler/taler_dbevents.h" 31 #include "taler/taler_pq_lib.h" 32 33 34 /** 35 * Connect to the database if the connection does not exist yet. 36 * 37 * @param pg the plugin-specific state 38 * @return #GNUNET_OK on success 39 */ 40 enum GNUNET_GenericReturnValue 41 TEH_PG_internal_setup (struct PostgresClosure *pg); 42 43 #endif