diff options
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-rw-r--r-- | src/interfaces/ecpg/include/ecpglib.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h new file mode 100644 index 00000000000..1fb35f8dfee --- /dev/null +++ b/src/interfaces/ecpg/include/ecpglib.h @@ -0,0 +1,27 @@ +#include <c.h> + +void ECPGdebug(int, FILE *); +bool ECPGconnect(const char * dbname); +bool ECPGdo(int, char *, ...); +bool ECPGcommit(int); +bool ECPGrollback(int); +bool ECPGfinish(); +bool ECPGstatus(); + +void ECPGlog(const char * format, ...); + +#ifdef LIBPQ_FE_H +bool ECPGsetdb(PGconn *); +#endif + +/* Here are some methods used by the lib. */ +/* Returns a pointer to a string containing a simple type name. */ +const char * ECPGtype_name(enum ECPGttype); + +/* A generic varchar type. */ +struct ECPGgeneric_varchar { + int len; + char arr[1]; +}; + + |