| 1 |
/*------------------------------------------------------------------------- |
| 2 |
* |
| 3 |
* connectdb.h |
| 4 |
* Common header file for connection to the database. |
| 5 |
* |
| 6 |
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group |
| 7 |
* Portions Copyright (c) 1994, Regents of the University of California |
| 8 |
* |
| 9 |
* IDENTIFICATION |
| 10 |
* src/bin/pg_dump/connectdb.h |
| 11 |
* |
| 12 |
*------------------------------------------------------------------------- |
| 13 |
*/ |
| 14 |
#ifndef CONNECTDB_H |
| 15 |
#define CONNECTDB_H |
| 16 |
|
| 17 |
#include "pg_backup.h" |
| 18 |
#include "pg_backup_utils.h" |
| 19 |
|
| 20 |
extern PGconn *ConnectDatabase(const char *dbname, const char *connection_string, const char *pghost, |
| 21 |
const char *pgport, const char *pguser, |
| 22 |
trivalue prompt_password, bool fail_on_error, |
| 23 |
const char *progname, const char **connstr, int *server_version, |
| 24 |
char *password, char *override_dbname); |
| 25 |
extern PGresult *executeQuery(PGconn *conn, const char *query); |
| 26 |
#endif /* CONNECTDB_H */ |