2
* this is a small part of c.h since we don't want to leak all postgres
3
* definitions into ecpg programs
4
* src/interfaces/ecpg/include/ecpglib.h
17
ecpg_gettext(const char *msgid)
18
__attribute__((format_arg(1)));
20
#define ecpg_gettext(x) (x)
26
#endif /* ndef bool */
29
#define true ((bool) 1)
30
#endif /* ndef true */
32
#define false ((bool) 0)
33
#endif /* ndef false */
49
void ECPGdebug(int, FILE *);
50
bool ECPGstatus(int, const char *);
51
bool ECPGsetcommit(int, const char *, const char *);
52
bool ECPGsetconn(int, const char *);
53
bool ECPGconnect(int, int, const char *, const char *, const char *, const char *, int);
54
bool ECPGdo(const int, const int, const int, const char *, const bool, const int, const char *,...);
55
bool ECPGtrans(int, const char *, const char *);
56
bool ECPGdisconnect(int, const char *);
57
bool ECPGprepare(int, const char *, const bool, const char *, const char *);
58
bool ECPGdeallocate(int, int, const char *, const char *);
59
bool ECPGdeallocate_all(int, int, const char *);
60
char *ECPGprepared_statement(const char *, const char *, int);
61
PGconn *ECPGget_PGconn(const char *);
62
PGTransactionStatusType ECPGtransactionStatus(const char *);
64
char *ECPGerrmsg(void);
66
/* print an error message */
69
/* define this for simplicity as well as compatibility */
71
#define SQLCODE sqlca.sqlcode
72
#define SQLSTATE sqlca.sqlstate
76
bool ECPGdo_descriptor(int, const char *, const char *, const char *);
77
bool ECPGdeallocate_desc(int, const char *);
78
bool ECPGallocate_desc(int, const char *);
79
bool ECPGget_desc_header(int, const char *, int *);
80
bool ECPGget_desc(int, const char *, int,...);
81
bool ECPGset_desc_header(int, const char *, int);
82
bool ECPGset_desc(int, const char *, int,...);
84
void ECPGset_noind_null(enum ECPGttype, void *);
85
bool ECPGis_noind_null(enum ECPGttype, void *);
86
bool ECPGdescribe(int, int, bool, const char *, const char *,...);
88
void ECPGset_var(int, void *, int);
89
void *ECPGget_var(int number);
91
/* dynamic result allocation */
92
void ECPGfree_auto_mem(void);
94
#ifdef ENABLE_THREAD_SAFETY
95
void ecpg_pthreads_init(void);
102
#endif /* _ECPGLIB_H */