Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e6652e

Browse files
committed
psql cleanup
1 parent2323b63 commit0e6652e

29 files changed

+5236
-8021
lines changed

‎src/bin/psql/command.c

Lines changed: 1049 additions & 904 deletions
Large diffs are not rendered by default.

‎src/bin/psql/command.h

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,36 @@
1111

1212

1313

14-
typedefenum_backslashResult {
15-
CMD_UNKNOWN=0,/* not done parsing yet (internal only) */
16-
CMD_SEND,/* query complete; send off */
17-
CMD_SKIP_LINE,/* keep building query */
18-
CMD_TERMINATE,/* quit program */
19-
CMD_NEWEDIT,/* query buffer was changed (e.g., via \e) */
20-
CMD_ERROR/* the execution of the backslash command resulted
21-
in an error */
22-
}backslashResult;
23-
24-
25-
26-
backslashResult
27-
HandleSlashCmds(PsqlSettings*pset,
28-
constchar*line,
29-
PQExpBufferquery_buf,
30-
constchar**end_of_cmd);
31-
32-
bool
33-
do_connect(constchar*new_dbname,
34-
constchar*new_user,
35-
PsqlSettings*pset);
36-
37-
bool
38-
process_file(constchar*filename,
39-
PsqlSettings*pset);
40-
41-
42-
bool
43-
do_pset(constchar*param,
44-
constchar*value,
45-
printQueryOpt*popt,
46-
boolquiet);
14+
typedefenum_backslashResult
15+
{
16+
CMD_UNKNOWN=0,/* not done parsing yet (internal only) */
17+
CMD_SEND,/* query complete; send off */
18+
CMD_SKIP_LINE,/* keep building query */
19+
CMD_TERMINATE,/* quit program */
20+
CMD_NEWEDIT,/* query buffer was changed (e.g., via \e) */
21+
CMD_ERROR/* the execution of the backslash command
22+
* resulted in an error */
23+
}backslashResult;
24+
25+
26+
27+
backslashResultHandleSlashCmds(PsqlSettings*pset,
28+
constchar*line,
29+
PQExpBufferquery_buf,
30+
constchar**end_of_cmd);
31+
32+
booldo_connect(constchar*new_dbname,
33+
constchar*new_user,
34+
PsqlSettings*pset);
35+
36+
boolprocess_file(constchar*filename,
37+
PsqlSettings*pset);
38+
39+
40+
booldo_pset(constchar*param,
41+
constchar*value,
42+
printQueryOpt*popt,
43+
boolquiet);
4744

4845

4946
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp