1 #ifndef __NOPERSERV_DB_H
2 #define __NOPERSERV_DB_H
6 typedef void (*NoQueryHandler
)(PGconn
*, void *);
7 typedef void (*NoCreateHandler
)(void);
9 void noperserv_async_query(NoQueryHandler handler
, void *tag
, char *format
, ...);
10 #define noperserv_query(format, ...) noperserv_async_query(NULL, NULL, format, __VA_ARGS__)
11 void noperserv_sync_query(char *format
, ...);
12 void noperserv_disconnect_db(void);
13 int noperserv_connect_db(NoCreateHandler createtables
);