Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 08:29:50

0001 /*
0002  * fakepq.h --
0003  *
0004  *  Minimal replacement for 'pq-fe.h' in the PostgreSQL client
0005  *  without having a PostgreSQL installation on the build system.
0006  *  This file comprises only data type, constant and function definitions.
0007  *
0008  * The programmers of this file believe that it contains material not
0009  * subject to copyright under the doctrines of scenes a faire and
0010  * of merger of idea and expression. Accordingly, this file is in the
0011  * public domain.
0012  *
0013  *-----------------------------------------------------------------------------
0014  */
0015 
0016 #ifndef FAKEPQ_H_INCLUDED
0017 #define FAKEPQ_H_INCLUDED
0018 
0019 #ifndef MODULE_SCOPE
0020 #define MODULE_SCOPE extern
0021 #endif
0022 
0023 MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*);
0024 
0025 typedef enum {
0026     CONNECTION_OK=0,
0027 } ConnStatusType;
0028 typedef enum {
0029     PGRES_EMPTY_QUERY=0,
0030     PGRES_BAD_RESPONSE=5,
0031     PGRES_NONFATAL_ERROR=6,
0032     PGRES_FATAL_ERROR=7,
0033 } ExecStatusType;
0034 typedef unsigned int Oid;
0035 typedef struct pg_conn PGconn;
0036 typedef struct pg_result PGresult;
0037 typedef void (*PQnoticeProcessor)(void*, const PGresult*);
0038 
0039 #define PG_DIAG_SQLSTATE 'C'
0040 #define PG_DIAG_MESSAGE_PRIMARY 'M'
0041 
0042 #include "pqStubs.h"
0043 
0044 MODULE_SCOPE const pqStubDefs* pqStubs;
0045 
0046 #endif