copy.h 534 Bytes
Newer Older
Peter Eisentraut's avatar
Peter Eisentraut committed
1 2 3 4 5 6 7
/*
 * psql - the PostgreSQL interactive terminal
 *
 * Copyright 2000 by PostgreSQL Global Development Team
 *
 * $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.5 2000/01/18 23:30:23 petere Exp $
 */
8 9 10 11 12 13 14 15
#ifndef COPY_H
#define COPY_H

#include <c.h>
#include <stdio.h>
#include <libpq-fe.h>

/* handler for \copy */
Peter Eisentraut's avatar
Peter Eisentraut committed
16
bool		do_copy(const char *args);
17 18 19

/* lower level processors for copy in/out streams */

Peter Eisentraut's avatar
Peter Eisentraut committed
20 21
bool		handleCopyOut(PGconn *conn, FILE *copystream);
bool		handleCopyIn(PGconn *conn, FILE *copystream, const char *prompt);
22 23

#endif