PostgreSQL Source Code
git master
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
psqlscanslash.h
Go to the documentation of this file.
1
/*
2
* psql - the PostgreSQL interactive terminal
3
*
4
* Copyright (c) 2000-2024, 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 */
15
enum
slash_option_type
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
};
23
24
25
extern
char
*
psql_scan_slash_command
(
PsqlScanState
state
);
26
27
extern
char
*
psql_scan_slash_option
(
PsqlScanState
state
,
28
enum
slash_option_type
type
,
29
char
*quote,
30
bool
semicolon
);
31
32
extern
void
psql_scan_slash_command_end
(
PsqlScanState
state
);
33
34
extern
int
psql_scan_get_paren_depth
(
PsqlScanState
state
);
35
36
extern
void
psql_scan_set_paren_depth
(
PsqlScanState
state
,
int
depth);
37
38
extern
void
dequote_downcase_identifier
(
char
*
str
,
bool
downcase,
int
encoding
);
39
40
#endif
/* PSQLSCANSLASH_H */
str
const char * str
Definition:
hashfn_unstable.h:263
semicolon
#define semicolon
Definition:
indent_codes.h:44
encoding
int32 encoding
Definition:
pg_database.h:41
psqlscan.h
psql_scan_slash_command
char * psql_scan_slash_command(PsqlScanState state)
psql_scan_slash_command_end
void psql_scan_slash_command_end(PsqlScanState state)
psql_scan_set_paren_depth
void psql_scan_set_paren_depth(PsqlScanState state, int depth)
dequote_downcase_identifier
void dequote_downcase_identifier(char *str, bool downcase, int encoding)
slash_option_type
slash_option_type
Definition:
psqlscanslash.h:16
OT_NORMAL
@ OT_NORMAL
Definition:
psqlscanslash.h:17
OT_SQLID
@ OT_SQLID
Definition:
psqlscanslash.h:18
OT_SQLIDHACK
@ OT_SQLIDHACK
Definition:
psqlscanslash.h:19
OT_FILEPIPE
@ OT_FILEPIPE
Definition:
psqlscanslash.h:20
OT_WHOLE_LINE
@ OT_WHOLE_LINE
Definition:
psqlscanslash.h:21
psql_scan_get_paren_depth
int psql_scan_get_paren_depth(PsqlScanState state)
psql_scan_slash_option
char * psql_scan_slash_option(PsqlScanState state, enum slash_option_type type, char *quote, bool semicolon)
PsqlScanStateData
Definition:
psqlscan_int.h:85
state
Definition:
regguts.h:323
type
const char * type
Definition:
wait_event_funcs.c:27
src
bin
psql
psqlscanslash.h
Generated on Wed Nov 27 2024 00:13:23 for PostgreSQL Source Code by
1.9.1