2000-01-19 00:30:24 +01:00
|
|
|
/*
|
|
|
|
* psql - the PostgreSQL interactive terminal
|
|
|
|
*
|
2000-01-29 17:58:54 +01:00
|
|
|
* Copyright 2000 by PostgreSQL Global Development Group
|
2000-01-19 00:30:24 +01:00
|
|
|
*
|
2000-01-29 17:58:54 +01:00
|
|
|
* $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.6 2000/01/29 16:58:48 petere Exp $
|
2000-01-19 00:30:24 +01:00
|
|
|
*/
|
1999-11-04 22:56:02 +01:00
|
|
|
#ifndef COPY_H
|
|
|
|
#define COPY_H
|
|
|
|
|
|
|
|
#include <c.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <libpq-fe.h>
|
|
|
|
|
|
|
|
/* handler for \copy */
|
2000-01-19 00:30:24 +01:00
|
|
|
bool do_copy(const char *args);
|
1999-11-04 22:56:02 +01:00
|
|
|
|
|
|
|
/* lower level processors for copy in/out streams */
|
|
|
|
|
2000-01-19 00:30:24 +01:00
|
|
|
bool handleCopyOut(PGconn *conn, FILE *copystream);
|
|
|
|
bool handleCopyIn(PGconn *conn, FILE *copystream, const char *prompt);
|
1999-11-04 22:56:02 +01:00
|
|
|
|
|
|
|
#endif
|