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.
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
|
|
|
* Copyright 2000 by PostgreSQL Global Development Group
|
|
|
|
*
|
|
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.5 2000/01/29 16:58:48 petere Exp $
|
|
|
|
*/
|
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
|
|
|
#include <c.h>
|
|
|
|
#include <libpq-fe.h>
|
|
|
|
|
|
|
|
char * xstrdup(const char *string);
|
|
|
|
|
|
|
|
bool setQFout(const char *fname);
|
|
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
void psql_error(const char *fmt, ...);
|
|
|
|
#else
|
|
|
|
/* This checks the format string for consistency. */
|
|
|
|
void psql_error(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void NoticeProcessor(void * arg, const char * message);
|
|
|
|
|
|
|
|
char * simple_prompt(const char *prompt, int maxlen, bool echo);
|
|
|
|
|
|
|
|
PGresult * PSQLexec(const char *query);
|
|
|
|
|
|
|
|
bool SendQuery(const char *query);
|
|
|
|
|
|
|
|
#endif /* COMMON_H */
|