annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/fakepq.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 /*
jpayne@69 2 * fakepq.h --
jpayne@69 3 *
jpayne@69 4 * Minimal replacement for 'pq-fe.h' in the PostgreSQL client
jpayne@69 5 * without having a PostgreSQL installation on the build system.
jpayne@69 6 * This file comprises only data type, constant and function definitions.
jpayne@69 7 *
jpayne@69 8 * The programmers of this file believe that it contains material not
jpayne@69 9 * subject to copyright under the doctrines of scenes a faire and
jpayne@69 10 * of merger of idea and expression. Accordingly, this file is in the
jpayne@69 11 * public domain.
jpayne@69 12 *
jpayne@69 13 *-----------------------------------------------------------------------------
jpayne@69 14 */
jpayne@69 15
jpayne@69 16 #ifndef FAKEPQ_H_INCLUDED
jpayne@69 17 #define FAKEPQ_H_INCLUDED
jpayne@69 18
jpayne@69 19 #ifndef MODULE_SCOPE
jpayne@69 20 #define MODULE_SCOPE extern
jpayne@69 21 #endif
jpayne@69 22
jpayne@69 23 MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*);
jpayne@69 24
jpayne@69 25 typedef enum {
jpayne@69 26 CONNECTION_OK=0,
jpayne@69 27 } ConnStatusType;
jpayne@69 28 typedef enum {
jpayne@69 29 PGRES_EMPTY_QUERY=0,
jpayne@69 30 PGRES_BAD_RESPONSE=5,
jpayne@69 31 PGRES_NONFATAL_ERROR=6,
jpayne@69 32 PGRES_FATAL_ERROR=7,
jpayne@69 33 } ExecStatusType;
jpayne@69 34 typedef unsigned int Oid;
jpayne@69 35 typedef struct pg_conn PGconn;
jpayne@69 36 typedef struct pg_result PGresult;
jpayne@69 37 typedef void (*PQnoticeProcessor)(void*, const PGresult*);
jpayne@69 38
jpayne@69 39 #define PG_DIAG_SQLSTATE 'C'
jpayne@69 40 #define PG_DIAG_MESSAGE_PRIMARY 'M'
jpayne@69 41
jpayne@69 42 #include "pqStubs.h"
jpayne@69 43
jpayne@69 44 MODULE_SCOPE const pqStubDefs* pqStubs;
jpayne@69 45
jpayne@69 46 #endif