Re: [INTERFACES] Re: Quick perl question

Поиск
Список
Период
Сортировка
От Ed Loehr
Тема Re: [INTERFACES] Re: Quick perl question
Дата
Msg-id 38C4160B.E259A40C@austin.rr.com
обсуждение исходный текст
Ответ на Re: Quick perl question  (Mark Dalphin <mdalphin@amgen.com>)
Ответы unsubscribe katkin.1@osu.edu  (Michael Katkin <katkin@ling.ohio-state.edu>)
Список 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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Mark Dalphin
Дата:
Сообщение: Re: Quick perl question
Следующее
От: "Freeman, Sean"
Дата:
Сообщение: