PostgreSQL Source Code
git master
|
#include "pqexpbuffer.h"
Go to the source code of this file.
Data Structures | |
struct | PsqlScanCallbacks |
Typedefs | |
typedef struct PsqlScanStateData * | PsqlScanState |
typedef enum _promptStatus | promptStatus_t |
typedef struct PsqlScanCallbacks | PsqlScanCallbacks |
Enumerations | |
enum | PsqlScanResult { PSCAN_SEMICOLON , PSCAN_BACKSLASH , PSCAN_INCOMPLETE , PSCAN_EOL } |
enum | _promptStatus { PROMPT_READY , PROMPT_CONTINUE , PROMPT_COMMENT , PROMPT_SINGLEQUOTE , PROMPT_DOUBLEQUOTE , PROMPT_DOLLARQUOTE , PROMPT_PAREN , PROMPT_COPY } |
enum | PsqlScanQuoteType { PQUOTE_PLAIN , PQUOTE_SQL_LITERAL , PQUOTE_SQL_IDENT , PQUOTE_SHELL_ARG } |
Functions | |
PsqlScanState | psql_scan_create (const PsqlScanCallbacks *callbacks) |
void | psql_scan_destroy (PsqlScanState state) |
void | psql_scan_set_passthrough (PsqlScanState state, void *passthrough) |
void | psql_scan_setup (PsqlScanState state, const char *line, int line_len, int encoding, bool std_strings) |
void | psql_scan_finish (PsqlScanState state) |
PsqlScanResult | psql_scan (PsqlScanState state, PQExpBuffer query_buf, promptStatus_t *prompt) |
void | psql_scan_reset (PsqlScanState state) |
void | psql_scan_reselect_sql_lexer (PsqlScanState state) |
bool | psql_scan_in_quote (PsqlScanState state) |
typedef enum _promptStatus promptStatus_t |
typedef struct PsqlScanCallbacks PsqlScanCallbacks |
typedef struct PsqlScanStateData* PsqlScanState |
Definition at line 27 of file psqlscan.h.
enum _promptStatus |
Enumerator | |
---|---|
PROMPT_READY | |
PROMPT_CONTINUE | |
PROMPT_COMMENT | |
PROMPT_SINGLEQUOTE | |
PROMPT_DOUBLEQUOTE | |
PROMPT_DOLLARQUOTE | |
PROMPT_PAREN | |
PROMPT_COPY |
Definition at line 39 of file psqlscan.h.
enum PsqlScanQuoteType |
Enumerator | |
---|---|
PQUOTE_PLAIN | |
PQUOTE_SQL_LITERAL | |
PQUOTE_SQL_IDENT | |
PQUOTE_SHELL_ARG |
Definition at line 52 of file psqlscan.h.
enum PsqlScanResult |
Enumerator | |
---|---|
PSCAN_SEMICOLON | |
PSCAN_BACKSLASH | |
PSCAN_INCOMPLETE | |
PSCAN_EOL |
Definition at line 30 of file psqlscan.h.
PsqlScanResult psql_scan | ( | PsqlScanState | state, |
PQExpBuffer | query_buf, | ||
promptStatus_t * | prompt | ||
) |
Referenced by MainLoop(), and ParseScript().
PsqlScanState psql_scan_create | ( | const PsqlScanCallbacks * | callbacks | ) |
Referenced by main(), MainLoop(), and ParseScript().
void psql_scan_destroy | ( | PsqlScanState | state | ) |
Referenced by main(), MainLoop(), and ParseScript().
void psql_scan_finish | ( | PsqlScanState | state | ) |
Referenced by MainLoop(), and ParseScript().
bool psql_scan_in_quote | ( | PsqlScanState | state | ) |
Referenced by MainLoop().
void psql_scan_reselect_sql_lexer | ( | PsqlScanState | state | ) |
void psql_scan_reset | ( | PsqlScanState | state | ) |
Referenced by exec_command_reset(), exec_command_watch(), and MainLoop().
void psql_scan_set_passthrough | ( | PsqlScanState | state, |
void * | passthrough | ||
) |
Referenced by main(), and MainLoop().
void psql_scan_setup | ( | PsqlScanState | state, |
const char * | line, | ||
int | line_len, | ||
int | encoding, | ||
bool | std_strings | ||
) |
Referenced by main(), MainLoop(), and ParseScript().