PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
copy.h
Go to the documentation of this file.
1 /*
2  * psql - the PostgreSQL interactive terminal
3  *
4  * Copyright (c) 2000-2017, PostgreSQL Global Development Group
5  *
6  * src/bin/psql/copy.h
7  */
8 #ifndef COPY_H
9 #define COPY_H
10 
11 #include "libpq-fe.h"
12 
13 
14 /* handler for \copy */
15 extern bool do_copy(const char *args);
16 
17 /* lower level processors for copy in/out streams */
18 
19 extern bool handleCopyOut(PGconn *conn, FILE *copystream,
20  PGresult **res);
21 extern bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary,
22  PGresult **res);
23 
24 #endif
bool do_copy(const char *args)
Definition: copy.c:269
PGconn * conn
Definition: streamutil.c:43
bool handleCopyOut(PGconn *conn, FILE *copystream, PGresult **res)
Definition: copy.c:435
bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
Definition: copy.c:514