]>
Commit | Line | Data |
---|---|---|
e43481af CP |
1 | #ifndef __PQSQL_DB_H |
2 | #define __PQSQL_DB_H | |
3 | ||
4 | #include <libpq-fe.h> | |
5 | ||
6 | typedef void (*PQQueryHandler)(PGconn *, void *); | |
7 | ||
8 | void pqasyncquery(PQQueryHandler handler, void *tag, char *format, ...); | |
9 | #define pqquery(format, ...) pqasyncquery(NULL, NULL, format, __VA_ARGS__) | |
10 | void pqsyncquery(char *format, ...); | |
11 | int pqconnected(void); | |
12 | ||
13 | #endif |