#include "variables.h"
#include "print.h"
Go to the source code of this file.
Data Structures | |
struct | _psqlSettings |
Defines | |
#define | DEFAULT_FIELD_SEP "|" |
#define | DEFAULT_RECORD_SEP "\n" |
#define | DEFAULT_EDITOR "vi" |
#define | DEFAULT_EDITOR_LINENUMBER_ARG "+" |
#define | DEFAULT_PROMPT1 "%/%R%# " |
#define | DEFAULT_PROMPT2 "%/%R%# " |
#define | DEFAULT_PROMPT3 ">> " |
#define | EXIT_SUCCESS 0 |
#define | EXIT_FAILURE 1 |
#define | EXIT_BADCONN 2 |
#define | EXIT_USER 3 |
Typedefs | |
typedef struct _psqlSettings | PsqlSettings |
Enumerations | |
enum | PSQL_ECHO { PSQL_ECHO_NONE, PSQL_ECHO_QUERIES, PSQL_ECHO_ALL } |
enum | PSQL_ECHO_HIDDEN { PSQL_ECHO_HIDDEN_OFF, PSQL_ECHO_HIDDEN_ON, PSQL_ECHO_HIDDEN_NOEXEC } |
enum | PSQL_ERROR_ROLLBACK { PSQL_ERROR_ROLLBACK_OFF, PSQL_ERROR_ROLLBACK_INTERACTIVE, PSQL_ERROR_ROLLBACK_ON } |
enum | HistControl { hctl_none = 0, hctl_ignorespace = 1, hctl_ignoredups = 2, hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups } |
enum | trivalue { TRI_DEFAULT, TRI_NO, TRI_YES, TRI_DEFAULT, TRI_NO, TRI_YES, TRI_DEFAULT, TRI_NO, TRI_YES, TRI_DEFAULT, TRI_NO, TRI_YES } |
Variables | |
PsqlSettings | pset |
#define DEFAULT_EDITOR "vi" |
Definition at line 22 of file settings.h.
#define DEFAULT_EDITOR_LINENUMBER_ARG "+" |
Definition at line 23 of file settings.h.
#define DEFAULT_FIELD_SEP "|" |
Definition at line 15 of file settings.h.
#define DEFAULT_PROMPT1 "%/%R%# " |
Definition at line 26 of file settings.h.
Referenced by main().
#define DEFAULT_PROMPT2 "%/%R%# " |
Definition at line 27 of file settings.h.
Referenced by main().
#define DEFAULT_PROMPT3 ">> " |
Definition at line 28 of file settings.h.
Referenced by main().
#define DEFAULT_RECORD_SEP "\n" |
Definition at line 16 of file settings.h.
Referenced by main().
#define EXIT_BADCONN 2 |
Definition at line 129 of file settings.h.
Referenced by CheckConnection(), and main().
#define EXIT_FAILURE 1 |
Definition at line 126 of file settings.h.
Referenced by addtt(), addtype(), associate(), dolink(), eitol(), exec_command(), fatal_error(), infile(), leapadd(), main(), MainLoop(), memcheck(), newabbr(), oadd(), parse_psql_options(), pg_malloc(), pg_realloc(), pg_strdup(), printTable(), printTableAddCell(), printTableAddHeader(), rpytime(), rulesub(), tadd(), usage(), writezone(), and yearistype().
#define EXIT_SUCCESS 0 |
Definition at line 122 of file settings.h.
Referenced by main(), MainLoop(), and parse_psql_options().
#define EXIT_USER 3 |
Definition at line 131 of file settings.h.
typedef struct _psqlSettings PsqlSettings |
enum HistControl |
Definition at line 51 of file settings.h.
{ hctl_none = 0, hctl_ignorespace = 1, hctl_ignoredups = 2, hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups } HistControl;
enum PSQL_ECHO |
Definition at line 30 of file settings.h.
{ PSQL_ECHO_NONE, PSQL_ECHO_QUERIES, PSQL_ECHO_ALL } PSQL_ECHO;
enum PSQL_ECHO_HIDDEN |
Definition at line 37 of file settings.h.
{ PSQL_ECHO_HIDDEN_OFF, PSQL_ECHO_HIDDEN_ON, PSQL_ECHO_HIDDEN_NOEXEC } PSQL_ECHO_HIDDEN;
enum PSQL_ERROR_ROLLBACK |
Definition at line 44 of file settings.h.
{ PSQL_ERROR_ROLLBACK_OFF, PSQL_ERROR_ROLLBACK_INTERACTIVE, PSQL_ERROR_ROLLBACK_ON } PSQL_ERROR_ROLLBACK;
enum trivalue |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES | |
TRI_DEFAULT | |
TRI_NO | |
TRI_YES |
Definition at line 59 of file settings.h.
{ TRI_DEFAULT, TRI_NO, TRI_YES };
Definition at line 36 of file startup.c.
Referenced by AcceptResult(), CheckConnection(), command_no_begin(), connection_warnings(), ConnectionUp(), describeAggregates(), describeFunctions(), describeOneTableDetails(), describeOneTSConfig(), describeOneTSParser(), describeOperators(), describeRoles(), describeTableDetails(), describeTablespaces(), describeTypes(), do_connect(), do_copy(), do_lo_export(), do_lo_import(), do_lo_list(), do_lo_unlink(), do_watch(), exec_command(), ExecQueryUsingCursor(), fail_lo_xact(), finish_lo_xact(), finishInput(), get_prompt(), handleCopyIn(), HandleSlashCmds(), initializeInput(), is_select_command(), is_superuser(), listAllDbs(), listCasts(), listCollations(), listConversions(), listDbRoleSettings(), listDefaultACLs(), listDomains(), listEventTriggers(), listExtensionContents(), listExtensions(), listForeignDataWrappers(), listForeignServers(), listForeignTables(), listLanguages(), listOneExtensionContents(), listSchemas(), listTables(), listTSConfigs(), listTSConfigsVerbose(), listTSDictionaries(), listTSParsers(), listTSParsersVerbose(), listTSTemplates(), listUserMappings(), MainLoop(), objectDescription(), parse_slash_copy(), permissionsList(), pg_send_history(), print_lo_result(), printACLColumn(), PrintNotifications(), PrintQueryResults(), PrintQueryStatus(), PrintQueryTuples(), printSSLInfo(), process_file(), ProcessResult(), psql_error(), PSQLexec(), SendQuery(), session_username(), SetCancelConn(), setQFout(), skip_white_space(), slashUsage(), standard_strings(), start_lo_xact(), StoreQueryTuple(), SyncVariables(), and UnsyncVariables().