File indexing completed on 2025-01-17 09:55:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 typedef struct pqStubDefs {
0015
0016
0017
0018 const char* (*pg_encoding_to_charPtr)(int);
0019 void (*PQclearPtr)(PGresult*);
0020 int (*PQclientEncodingPtr)(const PGconn*);
0021 char* (*PQcmdTuplesPtr)(PGresult*);
0022 PGconn* (*PQconnectdbPtr)(const char*);
0023 char* (*PQerrorMessagePtr)(const PGconn*);
0024 PGresult* (*PQdescribePreparedPtr)(PGconn*, const char*);
0025 PGresult* (*PQexecPtr)(PGconn*, const char*);
0026 PGresult* (*PQexecPreparedPtr)(PGconn*, const char*, int, const char *const*, const int*, const int*, int);
0027 char* (*PQdbPtr)(const PGconn *);
0028 void (*PQfinishPtr)(PGconn*);
0029 char* (*PQfnamePtr)(PGresult*, int);
0030 int (*PQfnumberPtr)(const PGresult*, const char*);
0031 Oid (*PQftypePtr)(const PGresult*, int);
0032 int (*PQgetisnullPtr)(const PGresult*, int, int);
0033 int (*PQgetlengthPtr)(const PGresult*, int, int);
0034 char* (*PQgetvaluePtr)(const PGresult*, int, int);
0035 char* (*PQhostPtr)(const PGconn*);
0036 int (*PQnfieldsPtr)(const PGresult*);
0037 int (*PQnparamsPtr)(const PGresult*);
0038 int (*PQntuplesPtr)(const PGresult*);
0039 char* (*PQoptionsPtr)(const PGconn*);
0040 Oid (*PQparamtypePtr)(const PGresult*, int);
0041 char* (*PQpassPtr)(const PGconn*);
0042 char* (*PQportPtr)(const PGconn*);
0043 PGresult* (*PQpreparePtr)(PGconn*, const char*, const char*, int, const Oid*);
0044 char* (*PQresultErrorFieldPtr)(const PGresult*, int);
0045 ExecStatusType (*PQresultStatusPtr)(const PGresult*);
0046 int (*PQsetClientEncodingPtr)(PGconn*, const char*);
0047 PQnoticeProcessor (*PQsetNoticeProcessorPtr)(PGconn*, PQnoticeProcessor, void*);
0048 ConnStatusType (*PQstatusPtr)(PGconn*);
0049 char* (*PQuserPtr)(const PGconn*);
0050 char* (*PQttyPtr)(const PGconn*);
0051 } pqStubDefs;
0052 #define pg_encoding_to_char (pqStubs->pg_encoding_to_charPtr)
0053 #define PQclear (pqStubs->PQclearPtr)
0054 #define PQclientEncoding (pqStubs->PQclientEncodingPtr)
0055 #define PQcmdTuples (pqStubs->PQcmdTuplesPtr)
0056 #define PQconnectdb (pqStubs->PQconnectdbPtr)
0057 #define PQerrorMessage (pqStubs->PQerrorMessagePtr)
0058 #define PQdescribePrepared (pqStubs->PQdescribePreparedPtr)
0059 #define PQexec (pqStubs->PQexecPtr)
0060 #define PQexecPrepared (pqStubs->PQexecPreparedPtr)
0061 #define PQdb (pqStubs->PQdbPtr)
0062 #define PQfinish (pqStubs->PQfinishPtr)
0063 #define PQfname (pqStubs->PQfnamePtr)
0064 #define PQfnumber (pqStubs->PQfnumberPtr)
0065 #define PQftype (pqStubs->PQftypePtr)
0066 #define PQgetisnull (pqStubs->PQgetisnullPtr)
0067 #define PQgetlength (pqStubs->PQgetlengthPtr)
0068 #define PQgetvalue (pqStubs->PQgetvaluePtr)
0069 #define PQhost (pqStubs->PQhostPtr)
0070 #define PQnfields (pqStubs->PQnfieldsPtr)
0071 #define PQnparams (pqStubs->PQnparamsPtr)
0072 #define PQntuples (pqStubs->PQntuplesPtr)
0073 #define PQoptions (pqStubs->PQoptionsPtr)
0074 #define PQparamtype (pqStubs->PQparamtypePtr)
0075 #define PQpass (pqStubs->PQpassPtr)
0076 #define PQport (pqStubs->PQportPtr)
0077 #define PQprepare (pqStubs->PQpreparePtr)
0078 #define PQresultErrorField (pqStubs->PQresultErrorFieldPtr)
0079 #define PQresultStatus (pqStubs->PQresultStatusPtr)
0080 #define PQsetClientEncoding (pqStubs->PQsetClientEncodingPtr)
0081 #define PQsetNoticeProcessor (pqStubs->PQsetNoticeProcessorPtr)
0082 #define PQstatus (pqStubs->PQstatusPtr)
0083 #define PQuser (pqStubs->PQuserPtr)
0084 #define PQtty (pqStubs->PQttyPtr)
0085 MODULE_SCOPE const pqStubDefs *pqStubs;