[aplusdev] using A+ with PostgreSQL
ber
smith at panix.com
Fri Aug 31 00:10:14 EDT 2001
Hello Alexei and aplusdev readers,
At http://159-190.nyc.dsl.access.net/a+/ you will find
pointers to a PostgreSQL client example written in C and
a transliteration in A+. The A+ code uses the pq library
distributed with PostgreSQL via the A+ _dyld function.
The A+ code only provides interfaces to the functions required
for the 1st example at
http://www.postgresql.org/idocs/index.php?libpq-example.html.
I haven't looked further to see if one can use all the functions
in libpg in so easilly.
The bottom line is...
'/usr/local/pgsql/lib/libpq.so' _dyld (
'PQsetdbLogin'; 'PQsetdb'; (9 7 7 7 7 7 7 7);
'PQstatus'; 'PQstatus'; (9 9);
'PQerrorMessage'; 'PQerrorMessage'; (7 9);
'PQexec'; 'PQexec'; (9 9 7);
'PQresultStatus'; 'PQresultStatus'; (9 9);
'PQclear'; 'PQclear'; (8 9);
'PQnfields'; 'PQnfields'; (9 9);
'PQntuples'; 'PQntuples'; (9 9);
'PQfname'; 'PQfname'; (7 9 9);
'PQgetvalue'; 'PQgetvalue'; (7 9 9 9);
'PQfinish'; 'PQfinish'; (8 9));
brian redman
More information about the apluslist
mailing list