2 * this is a small part of c.h since we don't want to leak all postgres
3 * definitions into ecpg programs
15 #endif /* ndef bool */
18 #define true ((bool) 1)
19 #endif /* ndef true */
21 #define false ((bool) 0)
22 #endif /* ndef false */
25 #include <SupportDefs.h>
41 void ECPGdebug(int, FILE *);
42 bool ECPGstatus(int, const char *);
43 bool ECPGsetcommit(int, const char *, const char *);
44 bool ECPGsetconn(int, const char *);
45 bool ECPGconnect_informix(int, const char *, const char *, const char *, const char *, int);
46 bool ECPGconnect(int, const char *, const char *, const char *, const char *, int);
47 bool ECPGdo(int, const char *, char *,...);
48 bool ECPGtrans(int, const char *, const char *);
49 bool ECPGdisconnect(int, const char *);
50 bool ECPGprepare(int, char *, char *);
51 bool ECPGdeallocate(int, char *);
52 bool ECPGdeallocate_all(int);
53 char *ECPGprepared_statement(char *);
55 void ECPGlog(const char *format,...);
56 char *ECPGerrmsg(void);
58 /* print an error message */
61 /* define this for simplicity as well as compatibility */
63 #define SQLCODE sqlca.sqlcode
67 bool ECPGdo_descriptor(int line, const char *connection,
68 const char *descriptor, const char *query);
69 bool ECPGdeallocate_desc(int line, const char *name);
70 bool ECPGallocate_desc(int line, const char *name);
71 void ECPGraise(int line, int code, const char *str);
72 bool ECPGget_desc_header(int, char *, int *);
73 bool ECPGget_desc(int, char *, int,...);
75 bool ECPGdescribe(int, bool, const char *, ...);
77 /* dynamic result allocation */
78 void ECPGfree_auto_mem(void);
80 enum COMPAT_MODE { ECPG_COMPAT_PGSQL = 0, ECPG_COMPAT_INFORMIX};
87 #endif /* _ECPGLIB_H */