Received: from smtp.cistron-office.nl (10fwd.cistron-office.nl [195.64.65.197]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3RGm6389941 for ; Fri, 27 Apr 2001 12:48:06 -0400 (EDT) (envelope-from jtv@cistron-office.nl) Received: from slipstream.cistron-office.nl ([195.64.65.252]) by smtp.cistron-office.nl with smtp (Exim 3.22 #1 (Debian)) id 14tBPP-0008Cq-00; Fri, 27 Apr 2001 18:47:55 +0200 Received: by slipstream.cistron-office.nl (sSMTP sendmail emulation); Fri, 27 Apr 2001 18:47:55 +0200 From: "J. T. Vermeulen" Date: Fri, 27 Apr 2001 18:47:55 +0200 To: Shane Hansen Cc: pgsql-interfaces@postgresql.org Subject: Re: persistent connection with c++ Message-ID: <20010427184755.F21157@cistron.nl> Mail-Followup-To: Shane Hansen , pgsql-interfaces@postgresql.org References: <002501c0ce74$38fce580$61e97b81@usu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <002501c0ce74$38fce580$61e97b81@usu.edu>; from sl1fm@cc.usu.edu on Thu, Apr 26, 2001 at 11:13:32AM -0600 X-Disclaimer: Include standard disclaimer here. X-Archive-Number: 200104/125 X-Sequence-Number: 1509 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