Files
harbour-core/harbour/contrib/hbpgsql
Viktor Szakats 67c8fbb275 2008-06-21 17:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/Makefile
   - contrib/hbgf/gtk
   - contrib/hbgf/os2pm
   - contrib/hbgf/win32
   + contrib/hbgf/hbgfw32
   + contrib/hbgf/hbgfos2
   + contrib/hbgf/hbgfgtk
   + contrib/hbgf/Makefile
   * contrib/hbgf/hbgfos2/Makefile
     + Decentralized GNU make for these contribs.
     * Renamed according to stds.
     ! Fix to be built under Linux/Win32.
       (if they don't work they should be fixed/disabled locally)

   * contrib/Makefile
   * contrib/hbodbc/Makefile
   * contrib/hbw32/Makefile
   * contrib/rddado/Makefile
     * Further decentralization of contrib building decisions.
     + Added all existing contribs to the list. Separated into 
       two sections: standalone contribs, and ones with external 
       dependencies.
     ; TODO: Refine this by some clever commenting.
             This is a multiplatform issue, so we need to 
             work together.

   * contrib/examples/Makefile
     ! Fixed to include newly added examples.

   * contrib/hbapollo/make_b32.bat
   * contrib/hbapollo/make_vc.bat
   * contrib/hbcurl/make_b32.bat
   * contrib/hbcurl/make_vc.bat
   * contrib/hbfbird/make_b32.bat
   * contrib/hbfbird/make_vc.bat
   * contrib/hbfimage/make_b32.bat
   * contrib/hbfimage/make_vc.bat
   * contrib/hbgd/make_b32.bat
   * contrib/hbgd/make_vc.bat
   * contrib/hbhpdf/make_b32.bat
   * contrib/hbhpdf/make_vc.bat
   * contrib/hbmysql/make_b32.bat
   * contrib/hbmysql/make_vc.bat
   * contrib/hbpgsql/make_b32.bat
   * contrib/hbpgsql/make_vc.bat
   * contrib/rddads/make_b32.bat
   * contrib/rddads/make_vc.bat
     + Some steps made to make it possible to disable 
       any messings with .dlls. This is not yet complete, 
       and the goal is to be able to use HB_INC_* to 
       specify include dirs for external packages on 
       all make systems (GNU, non-GNU .bat, non-GNU .sh)
       [TOMERGE 1.0.0RC1]
2008-06-21 16:00:23 +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