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

42 lines
824 B

#ifndef COMMAND_H
#define COMMAND_H
#include <config.h>
#include <c.h>
#include <pqexpbuffer.h>
#include "settings.h"
#include "print.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
* resulted in an error */
} backslashResult;
backslashResult
HandleSlashCmds(const char *line,
26 years ago
PQExpBuffer query_buf,
const char **end_of_cmd, int encoding);
26 years ago
bool
process_file(const char *filename, int encoding);
26 years ago
bool
do_pset(const char *param,
26 years ago
const char *value,
printQueryOpt * popt,
bool quiet);
#endif