aboutsummaryrefslogtreecommitdiff
path: root/contrib/pginterface/pginterface.h
blob: 5f856ac016b62f5cf51aff4a3e6d3c778804a978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * pglib.h
 *
*/

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

#define END_OF_TUPLES	(-1)