aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/copy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/copy.h')
-rw-r--r--src/bin/psql/copy.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/bin/psql/copy.h b/src/bin/psql/copy.h
new file mode 100644
index 00000000000..50fe0afcf52
--- /dev/null
+++ b/src/bin/psql/copy.h
@@ -0,0 +1,22 @@
+#ifndef COPY_H
+#define COPY_H
+
+#include <c.h>
+#include <stdio.h>
+#include <libpq-fe.h>
+#include "settings.h"
+
+/* handler for \copy */
+bool
+do_copy(const char *args, PsqlSettings *pset);
+
+
+/* lower level processors for copy in/out streams */
+
+bool
+handleCopyOut(PGconn *conn, FILE *copystream);
+
+bool
+handleCopyIn(PGconn *conn, FILE *copystream, const char * prompt);
+
+#endif