1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-13 14:22:43 +03:00

Major psql overhaul by Peter Eisentraut.

This commit is contained in:
Bruce Momjian
1999-11-04 21:56:02 +00:00
parent 2ea3b6d63a
commit a45195a191
30 changed files with 7026 additions and 152 deletions

25
src/bin/psql/common.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef COMMON_H
#define COMMON_H
#include <c.h>
#include "settings.h"
char *
xstrdup(const char * string);
bool
setQFout(const char *fname, PsqlSettings *pset);
char *
simple_prompt(const char *prompt, int maxlen, bool echo);
const char *
interpolate_var(const char * name, PsqlSettings * pset);
PGresult *
PSQLexec(PsqlSettings *pset, const char *query);
bool
SendQuery(PsqlSettings *pset, const char *query);
#endif /* COMMON_H */