From sl1fm@cc.usu.edu Thu Apr 26 17:13:34 2001 Received: from byways.org (byways.org [206.81.134.101]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3QHDY356950 for ; Thu, 26 Apr 2001 13:13:34 -0400 (EDT) (envelope-from sl1fm@cc.usu.edu) Received: from ShaneHansen (sl1fm.dorms.usu.edu [129.123.233.97]) by byways.org (8.11.0/8.8.7) with SMTP id f3QH69e18344 for ; Thu, 26 Apr 2001 11:06:09 -0600 Message-ID: <002501c0ce74$38fce580$61e97b81@usu.edu> From: "Shane Hansen" To: Subject: persistent connection with c++ Date: Thu, 26 Apr 2001 11:13:32 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0022_01C0CE41.EDA232C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200104/121 X-Sequence-Number: 1505 This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C0CE41.EDA232C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 woul= d really help me out. Thank you, Shane=20 ------=_NextPart_000_0022_01C0CE41.EDA232C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a search engine in c++ that does many different= =20 database queries.  I would like to maintain a persistent connection th= at=20 could be used by many different functions.  Is this possible using=20 libpq++?  Any suggestions would really help me out.
 
Thank you,
 
Shane
------=_NextPart_000_0022_01C0CE41.EDA232C0-- From jtv@cistron-office.nl Fri Apr 27 16:48:06 2001 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