PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
copy.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/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 handleCopyOut(PGconn *conn, FILE *copystream, PGresult **res)
Definition: copy.c:434
bool do_copy(const char *args)
Definition: copy.c:268
bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
Definition: copy.c:511
PGconn * conn
Definition: streamutil.c:53