Обсуждение: persistent connection with c++

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

persistent connection with c++

От
"Shane Hansen"
Дата:
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"
Дата:
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
connectionthat could be used by many different functions.  Is this possible using libpq++?  Any suggestions would
reallyhelp 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