PostgreSQL Source Code
git master
|
#include "pqexpbuffer.h"
Go to the source code of this file.
Functions | |
char * | gets_interactive (const char *prompt, PQExpBuffer query_buf) |
char * | gets_fromFile (FILE *source) |
void | initializeInput (int flags) |
bool | printHistory (const char *fname, unsigned short int pager) |
void | pg_append_history (const char *s, PQExpBuffer history_buf) |
void | pg_send_history (PQExpBuffer history_buf) |
char* gets_fromFile | ( | FILE * | source | ) |
Definition at line 186 of file input.c.
References appendPQExpBufferStr(), createPQExpBuffer(), PQExpBufferData::data, PQExpBufferData::len, pg_log_error, pg_strdup(), PQExpBufferBroken, resetPQExpBuffer(), sigint_interrupt_enabled, and source.
Referenced by exec_command_prompt(), gets_interactive(), and MainLoop().
char* gets_interactive | ( | const char * | prompt, |
PQExpBuffer | query_buf | ||
) |
Definition at line 67 of file input.c.
References fflush(), gets_fromFile(), sigint_interrupt_enabled, generate_unaccent_rules::stdout, and tab_completion_query_buf.
Referenced by MainLoop().
void initializeInput | ( | int | flags | ) |
Definition at line 344 of file input.c.
References expand_tilde(), finishInput(), get_home_path(), GetVariable(), initialize_readline(), MAXPGPATH, pg_strdup(), pset, psprintf(), PSQLHISTORY, and _psqlSettings::vars.
Referenced by main().
void pg_append_history | ( | const char * | s, |
PQExpBuffer | history_buf | ||
) |
Definition at line 113 of file input.c.
References appendPQExpBufferChar(), and appendPQExpBufferStr().
Referenced by MainLoop().
void pg_send_history | ( | PQExpBuffer | history_buf | ) |
Definition at line 135 of file input.c.
References PQExpBufferData::data, free, hctl_ignoredups, hctl_ignorespace, _psqlSettings::histcontrol, i, pg_strdup(), pset, and resetPQExpBuffer().
Referenced by MainLoop().
bool printHistory | ( | const char * | fname, |
unsigned short int | pager | ||
) |
Definition at line 494 of file input.c.
References ClosePager(), fprintf, output, PageOutput(), pg_log_error, _psqlSettings::popt, pset, and printQueryOpt::topt.
Referenced by exec_command_s().