diff options
Diffstat (limited to 'src/interfaces/libpq/libpq-fe.h')
-rw-r--r-- | src/interfaces/libpq/libpq-fe.h | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h index 5adb5ade335..f11f72f3c34 100644 --- a/src/interfaces/libpq/libpq-fe.h +++ b/src/interfaces/libpq/libpq-fe.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-fe.h,v 1.2 1996/07/18 05:48:57 scrappy Exp $ + * $Id: libpq-fe.h,v 1.3 1996/07/23 03:35:14 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -127,17 +127,19 @@ typedef struct pg_result{ PGconn* conn; } PGresult; -typedef struct _PQprintOpt { - bool header; /* print output field headers or not */ - bool align; /* fill align the fields */ - bool standard; /* old brain dead format */ - bool html3; /* output html tables */ - bool expanded; /* expand tables */ - char *fieldSep; /* field separator */ - char *tableOpt; /* insert to HTML <table ...> */ - char *caption; /* HTML <caption> */ - char **fieldName; /* null terminated array of repalcement field names */ -} PQprintOpt; +struct _PQprintOpt { + bool header; /* print output field headers or not */ + bool align; /* fill align the fields */ + bool standard; /* old brain dead format */ + bool html3; /* output html tables */ + bool expanded; /* expand tables */ + char *fieldSep; /* field separator */ + char *tableOpt; /* insert to HTML <table ...> */ + char *caption; /* HTML <caption> */ + char **fieldName; /* null terminated array of repalcement field names */ +}; + +typedef struct _PQprintOpt PQprintOpt; /* === in fe-connect.c === */ /* make a new client connection to the backend */ @@ -176,6 +178,13 @@ extern char* PQoidStatus(PGresult *res); extern char* PQgetvalue(PGresult *res, int tup_num, int field_num); extern int PQgetlength(PGresult *res, int tup_num, int field_num); extern void PQclear(PGresult* res); +/* PQdisplayTuples() is a better version of PQprintTuples() */ +extern void PQdisplayTuples(PGresult *res, + FILE *fp, /* where to send the output */ + int fillAlign, /* pad the fields with spaces */ + char *fieldSep, /* field separator */ + int printHeader, /* display headers? */ + int quiet); extern void PQprintTuples(PGresult* res, FILE* fout, /* output stream */ int printAttName,/* print attribute names or not*/ |