Contents
DBD::Pg
The standard Perl client interface driver
DBD::Pg
(sometimes referred to as dbdpg
) is the standard Perl DBI driver for PostgreSQL, enabling Perl applications to connect direcly to PostgreSQL.
DBD::Pg
was first released in 1997.
Release history
This list shows major releases in the 3.x series; for a full and detailed list of releases see the change log and the release page.
- 3.15.0 (2021-05-21)
- 3.14.0 (2020-07-19)
- 3.13.0 (2020-06-18)
- 3.12.0 (2020-05-07)
- 3.11.0 (2020-04-23)
- 3.10.0 (2019-09-04)
- 3.9.0 (2019-08-14)
- 3.8.0 (2019-04-26)
- 3.7.0 (2017-09-24)
- 3.6.0 (2017-04-17)
- 3.5.0 (2015-01-07)
- 3.4.0 (2014-08-17)
- 3.3.0 (2014-05-31)
- 3.2.0 (2014-05-15)
- 3.1.0 (2014-04-04)
- 3.0.0 (2014-02-03)
Notes
DBD::Pg
was migrated from Subversion to GIT in 2011 ("DBD::Pg moves to git!")
Examples
Connect to database and execute "SELECT 'Hello World'
":
use strict; use DBI; my $dbh = DBI->connect( 'dbi:Pg:dbname=testdb', 'testuser' ); my $query = $dbh->prepare("SELECT 'Hello World'"); $query->execute(); printf("%s\n", $query->fetchrow_array()); $query->finish(); $dbh->disconnect();
References
- Perldoc: perldoc for DBD::Pg
- CPAN: CPAN entry
- GIT repository: DBD::Pg