~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/bin/psql/command.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * psql - the PostgreSQL interactive terminal
 
3
 *
 
4
 * Copyright (c) 2000-2005, PostgreSQL Global Development Group
 
5
 *
 
6
 * $PostgreSQL: pgsql/src/bin/psql/command.h,v 1.22 2005-01-01 05:43:08 momjian Exp $
 
7
 */
 
8
#ifndef COMMAND_H
 
9
#define COMMAND_H
 
10
 
 
11
#include "settings.h"
 
12
#include "print.h"
 
13
#include "psqlscan.h"
 
14
 
 
15
 
 
16
typedef enum _backslashResult
 
17
{
 
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 */
 
25
} backslashResult;
 
26
 
 
27
 
 
28
extern backslashResult HandleSlashCmds(PsqlScanState scan_state,
 
29
                                PQExpBuffer query_buf);
 
30
 
 
31
extern int      process_file(char *filename);
 
32
 
 
33
extern bool do_pset(const char *param,
 
34
                const char *value,
 
35
                printQueryOpt *popt,
 
36
                bool quiet);
 
37
 
 
38
extern void SyncVariables(void);
 
39
 
 
40
extern void UnsyncVariables(void);
 
41
 
 
42
extern void SyncVerbosityVariable(void);
 
43
 
 
44
#endif   /* COMMAND_H */