dbd/postgresql/dbd_postgresql.h

changeset 1
408291a6eb3e
child 2
c4f02fc67e5a
equal deleted inserted replaced
0:4ff31a4ea1fb 1:408291a6eb3e
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

mercurial