2000-01-19 00:30:24 +01:00
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
2014-01-07 22:05:30 +01:00
|
|
|
* Copyright (c) 2000-2014, PostgreSQL Global Development Group
|
2000-01-19 00:30:24 +01:00
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/bin/psql/copy.h
|
2000-01-19 00:30:24 +01:00
|
|
|
*/
|
1999-11-04 22:56:02 +01:00
|
|
|
#ifndef COPY_H
|
|
|
|
#define COPY_H
|
|
|
|
|
2000-02-16 14:15:26 +01:00
|
|
|
#include "libpq-fe.h"
|
1999-11-04 22:56:02 +01:00
|
|
|
|
2000-02-21 20:40:42 +01:00
|
|
|
|
1999-11-04 22:56:02 +01:00
|
|
|
/* handler for \copy */
|
2014-03-13 18:49:03 +01:00
|
|
|
extern bool do_copy(const char *args);
|
1999-11-04 22:56:02 +01:00
|
|
|
|
|
|
|
/* lower level processors for copy in/out streams */
|
|
|
|
|
2014-03-13 18:49:03 +01:00
|
|
|
extern bool handleCopyOut(PGconn *conn, FILE *copystream,
|
|
|
|
PGresult **res);
|
|
|
|
extern bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary,
|
|
|
|
PGresult **res);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
1999-11-04 22:56:02 +01:00
|
|
|
#endif
|