Re: Postgres and Perl: Which DBI module? - Mailing list pgsql-general

From Oliver Kohll
Subject Re: Postgres and Perl: Which DBI module?
Date
Msg-id 200207291354.57172.oliver@gtwebmarque.com
Whole thread Raw
In response to Postgres and Perl: Which DBI module?  (jgdon <REMOVEjgdon@ureach.comREMOVE>)
List 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 by date:

Previous
From: Darren Ferguson
Date:
Subject: Re: Limit on updates made in a transaction
Next
From: Elielson Fontanezi
Date:
Subject: RES: :-( Free Books