summaryrefslogtreecommitdiff
path: root/src/bin/psql/copy.h
blob: 6e01c5457d1f2487d69e66522d3a5f924779aa4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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