pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: J. T. Vermeulen <jtv@cistron-office.nl>
To: Shane Hansen <sl1fm@cc.usu.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: persistent connection with c++
Date: Fri, 27 Apr 2001 18:47:55 +0200
Message-ID: <20010427184755.F21157@cistron.nl> (raw)
In-Reply-To: <002501c0ce74$38fce580$61e97b81@usu.edu>
References: <002501c0ce74$38fce580$61e97b81@usu.edu>

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




view thread (2+ messages)

Message-ID: <20010427184755.F21157@cistron.nl>
Permalink:  ../20010427184755.F21157@cistron.nl/
Also on:    postgresql.org/message-id/20010427184755.F21157@cistron.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jtv@cistron-office.nl, sl1fm@cc.usu.edu
  Subject: Re: persistent connection with c++
  In-Reply-To: <20010427184755.F21157@cistron.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox