|
11 | 11 |
|
12 | 12 |
|
13 | 13 |
|
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); |
47 | 44 |
|
48 | 45 |
|
49 | 46 | #endif |