dbd/postgresql/dbd_postgresql.h

Sun, 23 Nov 2008 01:29:09 +0000

author
nrich@ii.net
date
Sun, 23 Nov 2008 01:29:09 +0000
changeset 1
408291a6eb3e
child 2
c4f02fc67e5a
permissions
-rw-r--r--

Initial import.

#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