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-2024, 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 */
libpq-fe.h
postgres_fe.h
executeCommand
void executeCommand(PGconn *conn, const char *query, bool echo)
Definition:
query_utils.c:47
executeQuery
PGresult * executeQuery(PGconn *conn, const char *query, bool echo)
Definition:
query_utils.c:22
executeMaintenanceCommand
bool executeMaintenanceCommand(PGconn *conn, const char *query, bool echo)
Definition:
query_utils.c:74
conn
PGconn * conn
Definition:
streamutil.c:55
pg_conn
Definition:
libpq-int.h:377
pg_result
Definition:
libpq-int.h:171
src
include
fe_utils
query_utils.h
Generated on Sun Oct 6 2024 18:13:24 for PostgreSQL Source Code by
1.9.1