Files
harbour-core/harbour/contrib/pgsql
Viktor Szakats 3307b6f37e 2007-11-27 01:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* make_b32.mak
     ! Removed -l flag from .dll creation to be in sync with the 
       rest of Harbour.

   * contrib/mtpl_b32.mak
   * contrib/mtpl_vc.mak
     ! Synced with core flags (VC mainly).

   * contrib/freeimage/fi_winfu.c
   * contrib/freeimage/fi_wrp.c
   * contrib/freeimage/make_b32.bat
   * contrib/freeimage/make_vc.bat
   * contrib/firebird/firebird.c
   * contrib/firebird/make_b32.bat
   * contrib/firebird/make_vc.bat
   * contrib/pdflib/make_b32.bat
   * contrib/pdflib/make_vc.bat
   * contrib/pdflib/pdfhbdoc.c
   * contrib/pgsql/postgres.c
   * contrib/pgsql/make_b32.bat
   * contrib/pgsql/make_vc.bat
   * contrib/mysql/mysql.c
   * contrib/mysql/make_b32.bat
   * contrib/mysql/make_vc.bat
     ! Some extra lib-level custom C flags fixed to be 
       in sync with rest of Harbour. (mainly HB_OS_WIN_32_USED)

   * contrib/hbzlib/make_b32.bat
   * contrib/hbzlib/make_vc.bat
     ! hbziparch extra switches removed (all of them). 
       This made surface a whole lot of warnings.
       If someone wants to create a .dll from this, 
       -DZLIB_DLL will need to be added to C_USR.
       -a8 switch was also removed from the BCC build.
       If someone know that it's necessary, pls shout.
2007-11-27 00:26: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