A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
DBI connection code
use DBI;
my $dsn = "dbi:Pg:dbname=xxxxxx";
my $dbh = DBI->connect($dsn, 'postgres', '');
my $statuses = $dbh->selectall_hashref("SELECT id, status, name FROM statuses", "id");
Labels:
databases,
dbi,
perl,
postgresql