PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
psqlscanslash.h File Reference
Include dependency graph for psqlscanslash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  slash_option_type {
  OT_NORMAL, OT_SQLID, OT_SQLIDHACK, OT_FILEPIPE,
  OT_WHOLE_LINE, OT_NO_EVAL
}
 

Functions

char * psql_scan_slash_command (PsqlScanState state)
 
char * psql_scan_slash_option (PsqlScanState state, enum slash_option_type type, char *quote, bool semicolon)
 
void psql_scan_slash_command_end (PsqlScanState state)
 
void dequote_downcase_identifier (char *str, bool downcase, int encoding)
 

Enumeration Type Documentation

Enumerator
OT_NORMAL 
OT_SQLID 
OT_SQLIDHACK 
OT_FILEPIPE 
OT_WHOLE_LINE 
OT_NO_EVAL 

Definition at line 15 of file psqlscanslash.h.

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 };

Function Documentation

void dequote_downcase_identifier ( char *  str,
bool  downcase,
int  encoding 
)

Referenced by indexOfColumn().

char* psql_scan_slash_command ( PsqlScanState  state)

Referenced by HandleSlashCmds().

void psql_scan_slash_command_end ( PsqlScanState  state)

Referenced by HandleSlashCmds().

char* psql_scan_slash_option ( PsqlScanState  state,
enum slash_option_type  type,
char *  quote,
bool  semicolon 
)