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:
25
src/bin/psql/common.h
Normal file
25
src/bin/psql/common.h
Normal 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 */
|
||||
Reference in New Issue
Block a user