38 lines
839 B
C
38 lines
839 B
C
#include "postgres_fe.h"
|
|
|
|
#ifdef HAVE_GETOPT_H
|
|
# include <getopt.h>
|
|
#endif
|
|
|
|
#ifndef HAVE_GETOPT_LONG
|
|
#include "getopt_long.h"
|
|
#endif
|
|
|
|
#include "libpq-fe.h"
|
|
#include "pqexpbuffer.h"
|
|
|
|
#ifndef HAVE_OPTRESET
|
|
int optreset;
|
|
#endif
|
|
|
|
const char *get_user_name(const char *progname);
|
|
|
|
#define _(x) gettext((x))
|
|
void init_nls(void);
|
|
|
|
typedef void (*help_handler)(const char *);
|
|
|
|
void handle_help_version_opts(int argc, char *argv[], const char *fixed_progname, help_handler hlp);
|
|
|
|
extern char *simple_prompt(const char *prompt, int maxlen, bool echo);
|
|
|
|
PGconn *
|
|
connectDatabase(const char *dbname, const char *pghost, const char *pgport,
|
|
const char *pguser, bool require_password, const char *progname);
|
|
|
|
PGresult *
|
|
executeQuery(PGconn *conn, const char *command, const char *progname, bool echo);
|
|
|
|
int
|
|
check_yesno_response(const char *string);
|