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
}
 

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)
 
int psql_scan_get_paren_depth (PsqlScanState state)
 
void psql_scan_set_paren_depth (PsqlScanState state, int depth)
 
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 

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

Function Documentation

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

Referenced by indexOfColumn().

int psql_scan_get_paren_depth ( PsqlScanState  state)

Referenced by save_query_text_state().

void psql_scan_set_paren_depth ( PsqlScanState  state,
int  depth 
)

Referenced by discard_query_text().

char* psql_scan_slash_command ( PsqlScanState  state)

Referenced by HandleSlashCmds().

void psql_scan_slash_command_end ( PsqlScanState  state)

Referenced by HandleSlashCmds().