File indexing completed on 2024-05-18 08:29:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
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