aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/ecpglib.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-10 16:44:17 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-10 16:44:17 +0000
commit38201e21d0849a469e165085e4d12ac0969f5018 (patch)
treeb9e0e9db026ea6b3838f57025aebbca014f998f4 /src/interfaces/ecpg/include/ecpglib.h
parenta8313f9671c621852dbdf16b6f47e19ceda489ea (diff)
downloadpostgresql-38201e21d0849a469e165085e4d12ac0969f5018.tar.gz
postgresql-38201e21d0849a469e165085e4d12ac0969f5018.zip
Erk, the whole directory structure changed on us here...
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h27
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];
+};
+
+