pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Davis <sdavis2@mail.nih.gov>
To: David <dbree@duo-county.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: pgperl vs dbd-perl
Date: Tue, 09 Aug 2005 10:57:41 -0400
Message-ID: <BF1E3CA5.C038%sdavis2@mail.nih.gov> (raw)
In-Reply-To: <20050809144539.GB1756@localhost.localdomain>

On 8/9/05 10:45 AM, "David" <dbree@duo-county.com> wrote:

> I'm wondering which of the two is considered the best.  I have both
> installed on my system and actually have done some work with PgPerl
> because it looked a bit less complicated, and at first, I thought that
> this might be a more postgres-specific interface.
> 
> However, in researching the mailing lists, etc, it seems that DBD:: is
> getting the most attention - in fact, I see little mention of PgPerl,
> and the PgPerl list seems rather quiet.
> 
> In addition, it appears that DBD can do things that PgPerl can't.  For
> example, I haven't been able to find an escape-string function in
> PgPerl, which I'm now looking to implement.  Would one need to write his
> own escape-string for PgPerl?
> 
> Is PgPerl still viable or is DBD the way to go?

DBD::Pg is the way to go, for numerous reasons.  DBI is very well supported.
More importantly, almost all database-related work is done by building on
DBI.  Interfacing your own code with those of others is then relatively
straightforward.  See, for some examples, DBIx::RecordSet or Class::DBI.
Finally, if you every need to port to another database product (GASP!), DBI
is fairly easy to adapt (depending on DB-specific SQL).

Sean




view thread (5+ messages)  latest in thread

Message-ID: <BF1E3CA5.C038%sdavis2@mail.nih.gov>
Permalink:  ../BF1E3CA5.C038%25sdavis2@mail.nih.gov/
Also on:    postgresql.org/message-id/BF1E3CA5.C038%sdavis2@mail.nih.gov

 · 

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: sdavis2@mail.nih.gov, dbree@duo-county.com
  Subject: Re: pgperl vs dbd-perl
  In-Reply-To: <BF1E3CA5.C038%sdavis2@mail.nih.gov>

* 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