Files
harbour-core/harbour/contrib/hbpgsql
Viktor Szakats 05de32a8d7 2008-05-29 17:37 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbmysql/make_gcc.sh
   * contrib/hbmysql/make_b32.bat
   * contrib/hbmysql/make_vc.bat
   * contrib/make_b32_all.bat
   * contrib/make_gcc_all.sh
   * contrib/hbfbird/make_gcc.sh
   * contrib/hbfbird/make_b32.bat
   * contrib/hbfbird/make_vc.bat
   * contrib/hbapollo/make_gcc.sh
   * contrib/hbapollo/make_b32.bat
   * contrib/hbapollo/make_vc.bat
   * contrib/make_vc_all.bat
   * contrib/hbhpdf/make_gcc.sh
   * contrib/hbhpdf/make_b32.bat
   * contrib/hbhpdf/make_vc.bat
   * contrib/hbpgsql/make_gcc.sh
   * contrib/hbpgsql/make_b32.bat
   * contrib/hbpgsql/make_vc.bat
   * contrib/rddads/make_gcc.sh
   * contrib/rddads/make_b32.bat
   * contrib/rddads/make_vc.bat
   * contrib/hbfimage/make_gcc.sh
   * contrib/hbfimage/make_b32.bat
   * contrib/hbfimage/make_vc.bat
   * contrib/hbgd/make_b32.bat
   * contrib/hbgd/make_gcc.sh
   * contrib/hbgd/make_vc.bat
     * Changed envvars pointing to external packages to comply 
       with our own rules:
          APOLLO_DIR    -> HB_DIR_APOLLO   
          FIREBIRD_DIR  -> HB_DIR_FIREBIRD 
          FREEIMAGE_DIR -> HB_DIR_FREEIMAGE
          GD_DIR        -> HB_DIR_GD       
          MYSQL_DIR     -> HB_DIR_MYSQL    
          PDFLIB_DIR    -> HB_DIR_PDFLIB   
          PGSQL_DIR     -> HB_DIR_PGSQL    
          ADS_DIR       -> HB_DIR_ADS      
          LIBHARU_DIR   -> HB_DIR_LIBHARU  
          (same rule for <package>_INC -> HB_INC_<package>)
       Sorry folks, but you'll need to update your env.
       (I can send a 'gsar' script to help that)
     + Added option for non-GNU BCC/VC contrib makes to 
       accept HB_INC_<package> format envvars to specify 
       the include dir only, so that we're now in sync with 
       the non-GNU GCC build system (make_gcc.sh).
     ; TODO: HB_LIB_<package> (or HB_BIN_<package>) is still 
       to be done any .dll/.lib handling.
2008-05-29 15:41:22 +00:00
..

/*
 * $Id$
 */

README 23/12/2003 - Harbour Low Level api for Postgres RDBMS

It's to be seem like Harbour TMysql routines.


IMPORTANT
---------
The class TPostgres, only works with versions 7.4.x or greater, because some methods use information_schema and
New PQexecParams, which use protocol 3.0 and this protocol is only compatible with 7.4 versions.

BORLAND BCC
-----------
Using this library with bcc, you will need import library, ex: implib libpq.lib libpq.dll or (advice this) build your own
Postgres Library.

Go to postgres directory \postgresql-7.4.5\src\interfaces\libpq

Edit bcc32.mak and change the default borland directory for your needs. Example: BCB=c:\Borland\Bcc55

change postgresql-7.4.5\src\include\pg_config.h.win32 to pg_config.h

after this

make -f bcc32.mak

Now look at \postgresql-7.4.5\src\interfaces\libpq\Release, you will find the all .libs and .dlls

If want use the dll, link in your aplication blibpqdll.lib and send blibpq.dll together with your aplication

If you don't wanna use .dll link blibpq.lib, that's it.

LINUX GCC
----------
On Linux you will need link libpq or references by pq.
For full api documentation look at:
http://www.postgresql.org/docs/current/static/libpq.html

FILES:
postgres.c - Low level api
tpostgre.prg - Class implementation, it's to be seems like TMysql.
tests\simple.prg - Simple test class
tests\stress.prg - Stress test 
tests\cache.prg  - Show hot to use .dbf as pg cache, like TDataset for Delphi.

TODO:

That's all folks and sorry my poor english

Rodrigo Moreno - rodrigo_moreno@yahoo.com