Mercurial > repos > rliterman > csp2
view 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 |
line wrap: on
line source
/* * 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. * *----------------------------------------------------------------------------- */ #ifndef FAKEPQ_H_INCLUDED #define FAKEPQ_H_INCLUDED #ifndef MODULE_SCOPE #define MODULE_SCOPE extern #endif 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*); #define PG_DIAG_SQLSTATE 'C' #define PG_DIAG_MESSAGE_PRIMARY 'M' #include "pqStubs.h" MODULE_SCOPE const pqStubDefs* pqStubs; #endif