mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 06:46:56 +02:00
47 lines
1019 B
C
47 lines
1019 B
C
/*
|
|
* psql - the PostgreSQL interactive terminal
|
|
*
|
|
* Copyright 2000 by PostgreSQL Global Development Group
|
|
*
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.8 2000/02/16 13:15:26 momjian Exp $
|
|
*/
|
|
#ifndef COMMAND_H
|
|
#define COMMAND_H
|
|
|
|
#include "pqexpbuffer.h"
|
|
|
|
#include "settings.h"
|
|
#include "print.h"
|
|
|
|
|
|
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
|
|
* resulted in an error */
|
|
} backslashResult;
|
|
|
|
|
|
backslashResult
|
|
HandleSlashCmds(const char *line,
|
|
PQExpBuffer query_buf,
|
|
const char **end_of_cmd);
|
|
|
|
bool
|
|
process_file(char *filename);
|
|
|
|
bool
|
|
test_superuser(const char * username);
|
|
|
|
bool
|
|
do_pset(const char *param,
|
|
const char *value,
|
|
printQueryOpt * popt,
|
|
bool quiet);
|
|
|
|
#endif /* COMMAND_H */
|