Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / bin / psql / command.h
blob3163c71103778910fa0cc66776c401dd57e3150b
1 /*
2 * psql - the PostgreSQL interactive terminal
4 * Copyright (c) 2000-2009, PostgreSQL Global Development Group
6 * $PostgreSQL$
7 */
8 #ifndef COMMAND_H
9 #define COMMAND_H
11 #include "print.h"
12 #include "psqlscan.h"
15 typedef enum _backslashResult
17 PSQL_CMD_UNKNOWN = 0, /* not done parsing yet (internal only) */
18 PSQL_CMD_SEND, /* query complete; send off */
19 PSQL_CMD_SKIP_LINE, /* keep building query */
20 PSQL_CMD_TERMINATE, /* quit program */
21 PSQL_CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
22 PSQL_CMD_ERROR /* the execution of the backslash command
23 * resulted in an error */
24 } backslashResult;
27 extern backslashResult HandleSlashCmds(PsqlScanState scan_state,
28 PQExpBuffer query_buf);
30 extern int process_file(char *filename, bool single_txn);
32 extern bool do_pset(const char *param,
33 const char *value,
34 printQueryOpt *popt,
35 bool quiet);
37 extern void connection_warnings(void);
39 extern void SyncVariables(void);
41 extern void UnsyncVariables(void);
43 #endif /* COMMAND_H */