Re: Postgres and Perl: Which DBI module?

From: Oliver Kohll <oliver(at)gtwebmarque(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres and Perl: Which DBI module?
Date: 2002-07-29 13:54:57
Message-ID: 200207291354.57172.oliver@gtwebmarque.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Kohll 2002-07-29 13:58:44 Re: Is there any such thing as PostgreSQL security on a hosted website?
Previous Message Neil Conway 2002-07-29 13:53:43 Re: pg_controldata question