dbd/postgresql/dbd_postgresql.h

changeset 1
408291a6eb3e
child 2
c4f02fc67e5a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dbd/postgresql/dbd_postgresql.h	Sun Nov 23 01:29:09 2008 +0000
@@ -0,0 +1,22 @@
+#include <libpq-fe.h>
+#include <postgres.h>
+#include <catalog/pg_type.h>
+#include <dbd/common.h>
+
+#define IDLEN 18
+
+#define DBD_POSTGRESQL_CONNECTION   "DBD.PostgreSQL.Connection"
+#define DBD_POSTGRESQL_STATEMENT    "DBD.PostgreSQL.Statement"
+
+typedef struct _connection {
+    PGconn *postgresql;
+    unsigned int statement_id;
+} connection_t;
+
+typedef struct _statement {
+    PGconn *postgresql;
+    PGresult *result;
+    char name[IDLEN];
+    int tuple;
+} statement_t;
+

mercurial