]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/include/ecpglib.h
From: Michael Meskes <meskes@topsystem.de>
[postgresql] / src / interfaces / ecpg / include / ecpglib.h
1 #include <c.h>
2
3 void            ECPGdebug(int, FILE *);
4 bool            ECPGconnect(const char *dbname);
5 bool            ECPGdo(int, char *,...);
6 bool            ECPGcommit(int);
7 bool            ECPGrollback(int);
8 bool            ECPGfinish(void);
9 bool            ECPGstatus(void);
10
11 void            ECPGlog(const char *format,...);
12
13 #ifdef LIBPQ_FE_H
14 bool            ECPGsetdb(PGconn *);
15
16 #endif
17
18 /* Here are some methods used by the lib. */
19 /* Returns a pointer to a string containing a simple type name. */
20 const char *ECPGtype_name(enum ECPGttype);
21
22 /* A generic varchar type. */
23 struct ECPGgeneric_varchar
24 {
25         int                     len;
26         char            arr[1];
27 };
28
29 /* print an error message */
30 void            sqlprint(void);
31
32 /* define this for simplicity as well as compatibility */
33
34 #define           SQLCODE        sqlca.sqlcode