aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpgeasy/libpgeasy.h
blob: e58d5a1cd60e8ad2bf8d71d92996a516d7785420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * pglib.h
 *
*/

PGresult   *doquery(char *query);
PGconn *connectdb(char *dbName,
		  char *pghost,
		  char *pgport,
		  char *pgoptions,
		  char *pgtty);
void		disconnectdb(void);
int			fetch(void *param,...);
int			fetchwithnulls(void *param,...);
void		on_error_continue(void);
void		on_error_stop(void);
PGresult   *get_result(void);
void		set_result(PGresult *newres);
void		unset_result(PGresult *oldres);
void		reset_fetch(void);

#define END_OF_TUPLES	(-1)