PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
psqlscanslash.h
Go to the documentation of this file.
1 /*
2  * psql - the PostgreSQL interactive terminal
3  *
4  * Copyright (c) 2000-2017, PostgreSQL Global Development Group
5  *
6  * src/bin/psql/psqlscanslash.h
7  */
8 #ifndef PSQLSCANSLASH_H
9 #define PSQLSCANSLASH_H
10 
11 #include "fe_utils/psqlscan.h"
12 
13 
14 /* Different ways for scan_slash_option to handle parameter words */
16 {
17  OT_NORMAL, /* normal case */
18  OT_SQLID, /* treat as SQL identifier */
19  OT_SQLIDHACK, /* SQL identifier, but don't downcase */
20  OT_FILEPIPE, /* it's a filename or pipe */
21  OT_WHOLE_LINE, /* just snarf the rest of the line */
22  OT_NO_EVAL /* no expansion of backticks or variables */
23 };
24 
25 
27 
29  enum slash_option_type type,
30  char *quote,
31  bool semicolon);
32 
34 
35 extern void dequote_downcase_identifier(char *str, bool downcase, int encoding);
36 
37 #endif /* PSQLSCANSLASH_H */
void psql_scan_slash_command_end(PsqlScanState state)
void dequote_downcase_identifier(char *str, bool downcase, int encoding)
char * psql_scan_slash_command(PsqlScanState state)
slash_option_type
Definition: psqlscanslash.h:15
char * psql_scan_slash_option(PsqlScanState state, enum slash_option_type type, char *quote, bool semicolon)
static char * encoding
Definition: initdb.c:121
Definition: regguts.h:298