Files
harbour-core/contrib/hbpgsql/hbpgsql.hbx
Viktor Szakats ff3a726edf 2021-03-31 21:26 UTC+0200 Aleksander Czajczynski (hb fki.pl)
* contrib/hbpgsql/hbpgsql.hbx
  * contrib/hbpgsql/postgres.c
  * contrib/hbpgsql/postgres.ch
    + add most new wrappers from this repository of Petr Chornyj:
      https://github.com/petr-ch/hbpgsql9
      Version guards have been added and "params" functions reworked
      to accept hashes instead of two arrays. Other minor corrections
      to fit into the contrib env.
    + add PQsslAttribute()
    * some existing functions were modified to make the parameter
      check (and fail if wrong) even if the underlying API is not
      available, instead of silently returning a default value.
    ; all of the above was build-tested only and some features
      require at least postgresql 8, 9 or 9.1

    + add PQlibVersion() -> <nVersion> (returns 0 for pre-9.1 postresql
versions)
      Ref: https://github.com/harbour/core/pull/127/ by @VerchenkoAG

    + PQEXECPARAMS(): add 4th parameter to set <resultFormat>
      Refs:
        https://www.postgresql.org/docs/9.1/static/libpq-exec.html
        https://groups.google.com/d/msg/harbour-users/hXhuVzU9pHA/RrDGLIiUAwAJ

    + add PQresStatus( <nNum> ) -> <cString>

    + added wrapper function
      PQresultErrorField( result, nFieldCode ) -> cString
      based on:
https://groups.google.com/d/msg/harbour-users/XSvRpbzfcHc/ztSL32fYpl4J
    + added PG_DIAG_* constants

    + added pg_encoding_to_char() wrapper to convert numeric
      encoding ID to string

    ! fixed to use hb_fopen() instead of fopen()

    + TPQserver():New(): all parameters are now optional
    ! TPQserver():New(): fixed to escape connect parameter values
    + TPQserver():New(): added 7th optional hash parameter to pass
custom
      connection parameters (e.g. SSL)
         https://www.postgresql.org/docs/devel/static/libpq-connect.html

  * contrib/hbpgsql/tests/test.prg
    + use pg_encoding_to_char(), plus some more feedback regarding
encodings

  * contrib/hbpgsql/tests/dbf2pg.prg
    + use VF IO
    + support more source field types

  ; synced with Viktor's 3.4 branch at https://github.com/vszakats/hb
    2017-02-15 15:14 UTC Viktor Szakats (vszakats users.noreply.github.com)
    2016-09-05 18:55 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2016-09-05 10:43 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2016-09-02 01:58 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2016-06-20 22:50 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2015-07-19 11:56 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2015-04-06 18:39 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2015-03-31 23:31 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2014-11-29 02:47 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
    2014-07-08 13:21 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    2014-02-11 18:18 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
    ; tons of cleanups in this library, many thanks
2021-03-31 21:26:42 +02:00

120 lines
2.8 KiB
Plaintext

/* --------------------------------------------------------------------
* NOTE: You can add manual override which functions to include or
* exclude from automatically generated EXTERNAL/DYNAMIC list.
* Syntax: // HB_FUNC_INCLUDE <func>
* // HB_FUNC_EXCLUDE <func>
*/
/* --------------------------------------------------------------------
* WARNING: Automatically generated code below. DO NOT EDIT! (except casing)
* Regenerate using hbmk2 '-hbx=' option.
*/
#ifndef __HBEXTERN_CH__HBPGSQL__
#define __HBEXTERN_CH__HBPGSQL__
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__ANNOUNCE )
ANNOUNCE __HBEXTERN__HBPGSQL__
#endif
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__REQUEST )
#command DYNAMIC <fncs,...> => EXTERNAL <fncs>
#endif
DYNAMIC hb_PQCopyFromWA
DYNAMIC lo_export
DYNAMIC lo_import
DYNAMIC lo_unlink
DYNAMIC pg_encoding_to_char
DYNAMIC PQbackendPID
DYNAMIC PQbinaryTuples
DYNAMIC PQcancel
DYNAMIC PQclientEncoding
DYNAMIC PQcmdStatus
DYNAMIC PQcmdTuples
DYNAMIC PQconnectdb
DYNAMIC PQconnectdbparams
DYNAMIC PQconnectionNeedsPassword
DYNAMIC PQconnectionUsedPassword
DYNAMIC PQconnectPoll
DYNAMIC PQconnectStart
DYNAMIC PQconnectStartParams
DYNAMIC PQconsumeInput
DYNAMIC PQdb
DYNAMIC PQerrorMessage
DYNAMIC PQescapeBytea
DYNAMIC PQescapeByteaConn
DYNAMIC PQescapeString
DYNAMIC PQexec
DYNAMIC PQexecParams
DYNAMIC PQexecPrepared
DYNAMIC PQfcount
DYNAMIC PQflush
DYNAMIC PQfmod
DYNAMIC PQfname
DYNAMIC PQfnumber
DYNAMIC PQfsize
DYNAMIC PQftable
DYNAMIC PQftype
DYNAMIC PQgetCancel
DYNAMIC PQgetisnull
DYNAMIC PQgetlength
DYNAMIC PQgetResult
DYNAMIC PQgetvalue
DYNAMIC PQhost
DYNAMIC PQisBusy
DYNAMIC PQisnonblocking
DYNAMIC PQisthreadsafe
DYNAMIC PQlastrec
DYNAMIC PQlibVersion
DYNAMIC PQmetadata
DYNAMIC PQnfields
DYNAMIC PQntuples
DYNAMIC PQoidStatus
DYNAMIC PQoidValue
DYNAMIC PQoptions
DYNAMIC PQparameterStatus
DYNAMIC PQpass
DYNAMIC PQping
DYNAMIC PQpingParams
DYNAMIC PQport
DYNAMIC PQprepare
DYNAMIC PQprotocolVersion
DYNAMIC PQputCopyData
DYNAMIC PQputCopyEnd
DYNAMIC PQrequestCancel
DYNAMIC PQreset
DYNAMIC PQresetPoll
DYNAMIC PQresetStart
DYNAMIC PQresStatus
DYNAMIC PQresult2array
DYNAMIC PQresultErrorField
DYNAMIC PQresultErrorMessage
DYNAMIC PQresultStatus
DYNAMIC PQsendQuery
DYNAMIC PQserverVersion
DYNAMIC PQsetClientEncoding
DYNAMIC PQsetdbLogin
DYNAMIC PQsetErrorVerbosity
DYNAMIC PQsetnonblocking
DYNAMIC PQsocket
DYNAMIC PQsslAttribute
DYNAMIC PQsslInUse
DYNAMIC PQstatus
DYNAMIC PQtrace
DYNAMIC PQtracecreate
DYNAMIC PQtransactionStatus
DYNAMIC PQtty
DYNAMIC PQunescapeBytea
DYNAMIC PQuntrace
DYNAMIC PQuser
DYNAMIC TPQQuery
DYNAMIC TPQRow
DYNAMIC TPQServer
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBPGSQL__REQUEST )
#uncommand DYNAMIC <fncs,...> => EXTERNAL <fncs>
#endif
#endif