Re: Postgres and Perl: Which DBI module?

Поиск
Список
Период
Сортировка
От Oliver Kohll
Тема Re: Postgres and Perl: Which DBI module?
Дата
Msg-id 200207291354.57172.oliver@gtwebmarque.com
обсуждение исходный текст
Ответ на Postgres and Perl: Which DBI module?  (jgdon <REMOVEjgdon@ureach.comREMOVE>)
Список pgsql-general
I just 'use DBI;' at the top of my scripts and

  my $dbh = DBI->connect('DBI:Pg:dbname=mydb', 'myuser', '',{RaiseError =>
1,AutoCommit => 0})||&quit_unlogged('Could not connect to DB');

to connect.
Obviously, dbname, options and what to do if connection fails will be
different.

On Saturday 27 July 2002 6:02 pm, you wrote:
> hello,
>
> I just managed to get a simple database running with postgresql.
>
> Now I would like to write some CGI scripts in perl that will be able to
> use it.
>
> What perl module should I use for this?
>
> I have found something called DBI ... and found examples for CSV
> databases ... but I am curious what module I should use for postgres ...
>
> Is there a DBI::Postgres module like DBI::CSV ?
>
> Cheers,
> Jim


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

Предыдущее
От: Darren Ferguson
Дата:
Сообщение: Re: Limit on updates made in a transaction
Следующее
От: Elielson Fontanezi
Дата:
Сообщение: RES: :-( Free Books