Re: [INTERFACES] Re: Quick perl question

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: bweaver(at)tranquility(dot)net
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] Re: Quick perl question
Date: 2000-03-06 20:33:15
Message-ID: 38C4160B.E259A40C@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> I also would like to echo the comments that someone else has made about using
> DBI::DBD rather than Pg. Pg works well and is slightly easier to get working,
> but that is because the complexity of DBI::DBD adds some useful stuff not
> present in Pg. In particular, the error trapping is great. On the down side, it
> gets tedious writting each query as two parts: "prepare" and "execute". This is
> compensated for in overall portability to other DBMS, I think.

You may also avoid that downside by encapsulating prepare() and
execute(), eg.

sub mySelect {
...
prepare...
execute...
...
}

Regards,
Ed Loehr

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Freeman, Sean 2000-03-06 21:15:21
Previous Message Mark Dalphin 2000-03-06 17:56:01 Re: Quick perl question