PostgreSQL Source Code  git master
query_utils.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * Facilities for frontend code to query a databases.
4  *
5  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
6  * Portions Copyright (c) 1994, Regents of the University of California
7  *
8  * src/include/fe_utils/query_utils.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef QUERY_UTILS_H
13 #define QUERY_UTILS_H
14 
15 #include "postgres_fe.h"
16 
17 #include "libpq-fe.h"
18 
19 extern PGresult *executeQuery(PGconn *conn, const char *query, bool echo);
20 
21 extern void executeCommand(PGconn *conn, const char *query, bool echo);
22 
23 extern bool executeMaintenanceCommand(PGconn *conn, const char *query,
24  bool echo);
25 
26 #endif /* QUERY_UTILS_H */
PGconn * conn
Definition: streamutil.c:54
bool executeMaintenanceCommand(PGconn *conn, const char *query, bool echo)
Definition: query_utils.c:74
void executeCommand(PGconn *conn, const char *query, bool echo)
Definition: query_utils.c:47
PGresult * executeQuery(PGconn *conn, const char *query, bool echo)
Definition: query_utils.c:22