PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <signal.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/termios.h>
#include "libpq-fe.h"
#include "libpq-int.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_FIELD_SEP " " |
Functions | |
static bool | do_field (const PQprintOpt *po, const PGresult *res, const int i, const int j, const int fs_len, char **fields, const int nFields, const char **fieldNames, unsigned char *fieldNotNum, int *fieldMax, const int fieldMaxLen, FILE *fout) |
static char * | do_header (FILE *fout, const PQprintOpt *po, const int nFields, int *fieldMax, const char **fieldNames, unsigned char *fieldNotNum, const int fs_len, const PGresult *res) |
static void | output_row (FILE *fout, const PQprintOpt *po, const int nFields, char **fields, unsigned char *fieldNotNum, int *fieldMax, char *border, const int row_index) |
static void | fill (int length, int max, char filler, FILE *fp) |
void | PQprint (FILE *fout, const PGresult *res, const PQprintOpt *po) |
void | PQdisplayTuples (const PGresult *res, FILE *fp, int fillAlign, const char *fieldSep, int printHeader, int quiet) |
void | PQprintTuples (const PGresult *res, FILE *fout, int PrintAttNames, int TerseOutput, int colWidth) |
#define DEFAULT_FIELD_SEP " " |
|
static |
Definition at line 330 of file fe-print.c.
References _PQprintOpt::align, pg_result::client_encoding, _PQprintOpt::expanded, _PQprintOpt::fieldSep, fprintf, _PQprintOpt::html3, i, j, libpq_gettext, malloc, PQgetlength(), PQgetvalue(), PQmblenBounded(), and res.
Referenced by PQprint().
|
static |
Definition at line 445 of file fe-print.c.
References _PQprintOpt::fieldSep, fprintf, _PQprintOpt::html3, j, len, libpq_gettext, malloc, PQfname(), res, and _PQprintOpt::standard.
Referenced by PQprint().
|
static |
|
static |
Definition at line 531 of file fe-print.c.
References _PQprintOpt::fieldSep, fprintf, _PQprintOpt::html3, and _PQprintOpt::standard.
Referenced by PQprint().
void PQdisplayTuples | ( | const PGresult * | res, |
FILE * | fp, | ||
int | fillAlign, | ||
const char * | fieldSep, | ||
int | printHeader, | ||
int | quiet | ||
) |
Definition at line 574 of file fe-print.c.
References DEFAULT_FIELD_SEP, fflush(), fill(), fprintf, free, i, j, libpq_gettext, malloc, PQfname(), PQgetlength(), PQgetvalue(), PQnfields(), PQntuples(), res, and generate_unaccent_rules::stdout.
void PQprint | ( | FILE * | fout, |
const PGresult * | res, | ||
const PQprintOpt * | po | ||
) |
Definition at line 68 of file fe-print.c.
References _PQprintOpt::align, calloc, _PQprintOpt::caption, do_field(), do_header(), exit(), _PQprintOpt::expanded, fflush(), _PQprintOpt::fieldName, _PQprintOpt::fieldSep, fprintf, free, _PQprintOpt::header, _PQprintOpt::html3, i, j, len, libpq_gettext, output_row(), _PQprintOpt::pager, pq_block_sigpipe(), pq_reset_sigpipe(), PQfname(), PQnfields(), PQntuples(), res, _PQprintOpt::standard, generate_unaccent_rules::stdout, and _PQprintOpt::tableOpt.
Referenced by printResultSet().
void PQprintTuples | ( | const PGresult * | res, |
FILE * | fout, | ||
int | PrintAttNames, | ||
int | TerseOutput, | ||
int | colWidth | ||
) |
Definition at line 671 of file fe-print.c.
References fprintf, free, i, j, libpq_gettext, malloc, PQfname(), PQgetvalue(), PQnfields(), PQntuples(), res, and sprintf.