| /* | |
| * fakepq.h -- | |
| * | |
| * Minimal replacement for 'pq-fe.h' in the PostgreSQL client | |
| * without having a PostgreSQL installation on the build system. | |
| * This file comprises only data type, constant and function definitions. | |
| * | |
| * The programmers of this file believe that it contains material not | |
| * subject to copyright under the doctrines of scenes a faire and | |
| * of merger of idea and expression. Accordingly, this file is in the | |
| * public domain. | |
| * | |
| *----------------------------------------------------------------------------- | |
| */ | |
| MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*); | |
| typedef enum { | |
| CONNECTION_OK=0, | |
| } ConnStatusType; | |
| typedef enum { | |
| PGRES_EMPTY_QUERY=0, | |
| PGRES_BAD_RESPONSE=5, | |
| PGRES_NONFATAL_ERROR=6, | |
| PGRES_FATAL_ERROR=7, | |
| } ExecStatusType; | |
| typedef unsigned int Oid; | |
| typedef struct pg_conn PGconn; | |
| typedef struct pg_result PGresult; | |
| typedef void (*PQnoticeProcessor)(void*, const PGresult*); | |
| MODULE_SCOPE const pqStubDefs* pqStubs; | |