persistent connection with c++

Поиск
Список
Период
Сортировка
Искать

persistent connection with c++

От:
"Shane Hansen" <sl1fm@cc.usu.edu>
Дата:
I have a search engine in c++ that does many different database queries.  I would like to maintain a persistent connection that could be used by many different functions.  Is this possible using libpq++?  Any suggestions would really help me out.
 
Thank you,
 
Shane

Re: persistent connection with c++

От:
"J. T. Vermeulen" <jtv@cistron-office.nl>
Дата:
On Thu, 26 Apr 2001, Shane Hansen wrote:

> I have a search engine in c++ that does many different database queries.  I would like to maintain a persistent connection that could be used by many different functions.  Is this possible using libpq++?  Any suggestions would really help me out.

Sure, just use PgDatabase and send multiple queries through it.  It will clear
your result set every time you issue a new one.


Jeroen


FAQ