4 * Minimal replacement for 'pq-fe.h' in the PostgreSQL client
5 * without having a PostgreSQL installation on the build system.
6 * This file comprises only data type, constant and function definitions.
8 * The programmers of this file believe that it contains material not
9 * subject to copyright under the doctrines of scenes a faire and
10 * of merger of idea and expression. Accordingly, this file is in the
13 *-----------------------------------------------------------------------------
16 #ifndef FAKEPQ_H_INCLUDED
17 #define FAKEPQ_H_INCLUDED
20 #define MODULE_SCOPE extern
23 MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*);
31 PGRES_NONFATAL_ERROR=6,
34 typedef unsigned int Oid;
35 typedef struct pg_conn PGconn;
36 typedef struct pg_result PGresult;
37 typedef void (*PQnoticeProcessor)(void*, const PGresult*);
39 #define PG_DIAG_SQLSTATE 'C'
40 #define PG_DIAG_MESSAGE_PRIMARY 'M'
44 MODULE_SCOPE pqStubDefs* pqStubs;