mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
792 B
35 lines
792 B
![]()
23 years ago
|
#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);
|