Received: from mxzilla4.xs4all.nl (mxzilla4.xs4all.nl [194.109.6.48]) by postgresql.org (Postfix) with ESMTP id D00744758F6 for ; Thu, 4 Apr 2002 11:54:50 -0500 (EST) Received: from xs3.xs4all.nl (jtv@xs3.xs4all.nl [194.109.6.44]) by mxzilla4.xs4all.nl (8.12.0/8.12.0) with ESMTP id g34GssTQ077595; Thu, 4 Apr 2002 18:54:54 +0200 (CEST) Received: (from jtv@localhost) by xs3.xs4all.nl (8.9.0/8.9.0) id SAA19774; Thu, 4 Apr 2002 18:54:54 +0200 (CEST) Date: Thu, 4 Apr 2002 18:54:53 +0200 From: jtv To: Carlos Moreno Cc: pgsql-interfaces Subject: Re: libpq++: trouble getting "copy table from" to work... Message-ID: <20020404185453.B17893@xs4all.nl> Mail-Followup-To: Carlos Moreno , pgsql-interfaces References: <3CABF95D.5010909@mochima.com> <20020404110805.A11481@xs4all.nl> <3CAC1BD9.2030600@mochima.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CAC1BD9.2030600@mochima.com>; from moreno@mochima.com on Thu, Apr 04, 2002 at 04:24:41AM -0500 X-Archive-Number: 200204/9 X-Sequence-Number: 2551 On Thu, Apr 04, 2002 at 04:24:41AM -0500, Carlos Moreno wrote: > > Hmmm... I've been *very* tempted to check out this library, > but have been too busy with a project that is already using > libpq++ (not that it is excessively long, but still, changing > everything scares me, mainly because I'm already overflowed > with the tasks that were due yesterday! :-( ) One thing I guess it depends on is the C++ "dialect" you're using. If you're using C++ as the proverbial "a better C," then libpqxx is not for you. But if the existing code deals with and uses exceptions and such, libpqxx should make your life a lot easier. No more checking for errors in return values, no more manual conversion of fields to integers, no more GetValue(). Perhaps (when I've got time--the weather's too good now!) I should put together some examples of converting code from libpq++ to libpqxx. > BTW, I didn't find any links to the documentation from the > link you gave me... I recall you mentioning some docs that > were available. Could you send me a pointer to it? They're in the archive. I'll put them up separately as well. Jeroen