Files
harbour-core/harbour/contrib/hbpgsql
Viktor Szakats 67f4a4070c 2007-12-01 03:08 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hgf
   + contrib/hbgf
   * contrib/hbwhat32/Makefile
   * contrib/hbwhat32/common.mak
   * contrib/hbfbird/test/bld_b32.bat
   * contrib/hbapollo/test/bld.bat
   * contrib/hbpgsql/tests/bld_b32.bat
   * contrib/hbfimage/test/bld_b32.bat
   * contrib/hbgd/tests/bldtest.bat
   * contrib/hbgf/os2pm/Makefile
   * contrib/hbgf/tests/bld_b32.bat
   * contrib/hbgf/win32/common.mak
   * contrib/hbgf/gtk/Makefile
   * contrib/hbrddado/common.mak
   * contrib/hbrddado/Makefile
   * contrib/hbbmcdx/common.mak
   * contrib/hbbmcdx/Makefile
   * contrib/hbgtwvg/common.mak
   * contrib/hbgtwvg/Makefile
   * contrib/hbrddads/common.mak
   * contrib/hbrddads/Makefile
     ! Some fixes to previous changes.

     ; Here is the final summary of contrib lib renames:
       ----------- ------------- -------------
       Old         Old           New
       DIR         LIBNAME       DIR & LIBNAME
       ----------- ------------- -------------
       adordd      adordd        hbrddado 
       apollo      apollo        hbapollo 
       bmdbfcdx    bmdbfcdx      hbbmcdx  
       btree       hbbtree       hbbtree  
       directx     hbwin32ddrw   hbw32ddr 
       firebird    firebird      hbfbird  
       freeimage   hbfreeimage   hbfimage 
       gd          hbgd          hbgd     
       gtwvg       gtwvg         hbgtwvg  
       hbzlib      hbziparch     hbziparch
       htmllib     html          (DELETED)
       libct       ct            hbct     
       libgt       gt            hbgt     
       libmisc     hbmisc        hbmisc   
       libnf       nf            hbnf     
       msql        msql          hbmsql   
       mysql       hbmysql       hbmysql  
       odbc        hbodbc        hbodbc   
       ole         hbole         hbole    
       pdflib      hbpdflib      (DELETED)
       pgsql       hbpg          hbpgsql  
       rdd_ads     rddads        hbrddads 
       samples     samples       hbclipsm 
       telepath    telepath      hbtpathy 
       tip         tip           hbtip    
       what32      what32        hbwhat32 
       win32       hbwin32       hbw32    
       xhb         xhb           xhb      
       hgf         hgf*          hbgf*
2007-12-01 02:08:48 +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