aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpgeasy/libpgeasy.h
blob: 43fbeaba85e9eea9e59a2c29e3844f573fdfcbf8 (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)