How to use the Postgresql API on Xbase++

This forum is for ideas and or code to be contributed for general use.
Post Reply
Message
Author
patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

How to use the Postgresql API on Xbase++

#1 Post 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
Attachments
apipostgrest.rar
(353.33 KiB) Downloaded 1009 times

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

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

#2 Post 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'
greetings by OHR
Jimmy

patito
Posts: 121
Joined: Tue Aug 31, 2010 9:01 pm

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

#3 Post 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

Post Reply