2
* psql - the PostgreSQL interactive terminal
4
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
6
* $PostgreSQL: pgsql/src/bin/psql/command.h,v 1.22 2005-01-01 05:43:08 momjian Exp $
16
typedef enum _backslashResult
18
CMD_UNKNOWN = 0, /* not done parsing yet (internal only) */
19
CMD_SEND, /* query complete; send off */
20
CMD_SKIP_LINE, /* keep building query */
21
CMD_TERMINATE, /* quit program */
22
CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
23
CMD_ERROR /* the execution of the backslash command
24
* resulted in an error */
28
extern backslashResult HandleSlashCmds(PsqlScanState scan_state,
29
PQExpBuffer query_buf);
31
extern int process_file(char *filename);
33
extern bool do_pset(const char *param,
38
extern void SyncVariables(void);
40
extern void UnsyncVariables(void);
42
extern void SyncVerbosityVariable(void);
44
#endif /* COMMAND_H */