| From: | joseph speigle <joe(dot)speigle(at)jklh(dot)us> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: really in neeed of help...queston about libpxx |
| Date: | 2003-12-17 21:01:27 |
| Message-ID: | 20031217210127.GC8732@www.sirfsup.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
libpqxx is a c++ wrapper on top of the c client library which gets installed along with the database itself. So, the libpqxx functions call the c functions, but provides an object oriented interface to those functions. For example, there is a connection object, transaction object... The configure script you run when preparing to compile libpqxx checks for (on this install) /usr/local/lib/pgsql/libpq.so, and then links against -lpq
the download has good tests which are demo programs. They are compiled with 'make test'. I got pretty far with using the demos.
The documentation for libpqxx is sometimes a duplication of the postgresql C documentation. Like, the connection constructor takes the same arguments, the environment variables are the same, etc.
> Hi! Im just new to pgsql. I'm trying to use pqxx since the program that I'll be doing is in C++. I'm using Redhat Linux 9.0 and using KDevelop for programming. What do I need to do in order to get libxx working? (linking libraries, etc) I've already installed them but haven't tried integrating the database in my program yet. Do you have sample C++ programs that use libxx? Is the tutorial (html files) found in the pqxx package enough or should I also study the documentations found pgsql?
>
> Hope somebody can help me. I really need to get this working soon. Thanks!!
--
joe speigle
| From | Date | Subject | |
|---|---|---|---|
| Next Message | joseph speigle | 2003-12-17 21:04:50 | Re: postgres library simailar to mysql.h |
| Previous Message | Chris | 2003-12-17 20:30:46 | postgres library simailar to mysql.h |