PostgreSQL Source Code  git master
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

◆ slash_option_type

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 };
@ OT_NORMAL
Definition: psqlscanslash.h:17
@ OT_SQLID
Definition: psqlscanslash.h:18
@ OT_SQLIDHACK
Definition: psqlscanslash.h:19
@ OT_FILEPIPE
Definition: psqlscanslash.h:20
@ OT_WHOLE_LINE
Definition: psqlscanslash.h:21

Function Documentation

◆ dequote_downcase_identifier()

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

Referenced by indexOfColumn().

◆ psql_scan_get_paren_depth()

int psql_scan_get_paren_depth ( PsqlScanState  state)

Referenced by save_query_text_state().

◆ psql_scan_set_paren_depth()

void psql_scan_set_paren_depth ( PsqlScanState  state,
int  depth 
)

Referenced by discard_query_text().

◆ psql_scan_slash_command()

char* psql_scan_slash_command ( PsqlScanState  state)

Referenced by HandleSlashCmds().

◆ psql_scan_slash_command_end()

void psql_scan_slash_command_end ( PsqlScanState  state)

Referenced by HandleSlashCmds().

◆ psql_scan_slash_option()