1 /* 2 * psql - the PostgreSQL interactive terminal 3 * 4 * Copyright (c) 2000-2021, 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 25