Page 1 of 1

How to use the Postgresql API on Xbase++

Posted: Tue Aug 07, 2012 8:46 am
by patito
Hi

The use of API of any database does the rapidity of any system,
since it is the type of coneccion more rapid that exists at present,
faster than the Odbc

I attach a small manual to install the example

Best Regard
Hector

Re: How to use the Postgresql API on Xbase++

Posted: Tue Aug 07, 2012 11:26 am
by Auge_Ohr
hi,

thx for Sample.

about instruction : i "think" Table country must be create first,
else Table clients can not use REFERENCES country (code).

LC* Constante are not set "default" so this fail

LC_COLLATE = 'Spanish, Chile'
LC_CTYPE = 'Spanish, Chile'

Re: How to use the Postgresql API on Xbase++

Posted: Tue Aug 07, 2012 7:11 pm
by patito
Hi Jimmy

YES you need first to populate the country table

The directory src/test/locale in the source distribution contains a
test suite for PostgreSQL's locale support
http://www.postgresql.org/docs/8.4/inte ... ocale.html

this piece of code/sample is only using the
Postgres wrappers for Xbase, and with this
can be proved that is not mandatory
to implement any class to use the Postges API,
and in the same way isn’t necessary the
use or utilization of arrays or DBF structures.”
you have to implement the sample acording to your lenguage needs
and also the Postgres lenguage configuration"
to setup the country settings"
You can add the method SetNoIvar and GeNoIvar, and use a browse

You do not need many instructions and special classes to make use
of Postgrest with alaska

Best Regard
Hector