Sun, 23 Nov 2008 01:29:09 +0000
Initial import.
1 | 1 | #include <libpq-fe.h> |
2 | #include <postgres.h> | |
3 | #include <catalog/pg_type.h> | |
4 | #include <dbd/common.h> | |
5 | ||
6 | #define IDLEN 18 | |
7 | ||
8 | #define DBD_POSTGRESQL_CONNECTION "DBD.PostgreSQL.Connection" | |
9 | #define DBD_POSTGRESQL_STATEMENT "DBD.PostgreSQL.Statement" | |
10 | ||
11 | typedef struct _connection { | |
12 | PGconn *postgresql; | |
13 | unsigned int statement_id; | |
14 | } connection_t; | |
15 | ||
16 | typedef struct _statement { | |
17 | PGconn *postgresql; | |
18 | PGresult *result; | |
19 | char name[IDLEN]; | |
20 | int tuple; | |
21 | } statement_t; | |
22 |