You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postgres/src/bin/psql/command.h

45 lines
1.1 KiB

/*
* psql - the PostgreSQL interactive terminal
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.h,v 1.20 2004/08/29 04:13:02 momjian Exp $
*/
#ifndef COMMAND_H
#define COMMAND_H
#include "settings.h"
#include "print.h"
#include "psqlscan.h"
26 years ago
typedef enum _backslashResult
{
CMD_UNKNOWN = 0, /* not done parsing yet (internal only) */
CMD_SEND, /* query complete; send off */
CMD_SKIP_LINE, /* keep building query */
CMD_TERMINATE, /* quit program */
CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
CMD_ERROR /* the execution of the backslash command
26 years ago
* resulted in an error */
} backslashResult;
26 years ago
extern backslashResult HandleSlashCmds(PsqlScanState scan_state,
PQExpBuffer query_buf);
26 years ago
extern int process_file(char *filename);
26 years ago
extern bool do_pset(const char *param,
26 years ago
const char *value,
printQueryOpt *popt,
26 years ago
bool quiet);
extern void SyncVariables(void);
extern void UnsyncVariables(void);
extern void SyncVerbosityVariable(void);
#endif /* COMMAND_H */