]> granicus.if.org Git - postgresql/blob - src/bin/psql/copy.h
Adapt to the changes of libpq(eliminateing using putenv()).
[postgresql] / src / bin / psql / copy.h
1 #ifndef COPY_H
2 #define COPY_H
3
4 #include <c.h>
5 #include <stdio.h>
6 #include <libpq-fe.h>
7 #include "settings.h"
8
9 /* handler for \copy */
10 bool
11                         do_copy(const char *args, int encoding);
12
13
14 /* lower level processors for copy in/out streams */
15
16 bool
17                         handleCopyOut(PGconn *conn, FILE *copystream);
18
19 bool
20                         handleCopyIn(PGconn *conn, FILE *copystream, const char *prompt);
21
22 #endif