| View previous topic :: View next topic |
| Author |
Message |
ioconnor
Joined: 01 Apr 2006
Posts: 4
|
| Posted: Wed Jul 26, 2006 8:22 pm Post subject: Perl & Postgresql |
|
|
I'm trying to offload some of the webserver work to be run via a script instead of tying up the users response. I wanted to write it in perl. However perl with postgresql is not supported while mysql is. Any chance of supporting this and instructions on how to set it up with my current triad system?
Here is a the code I used to determine mysql is supported but that the DBD for postgresql wasn't installed.
#!/usr/bin/perl -W
use strict;
use DBI;
# Get the list of drivers from the DBI
my @driver_names = DBI->available_drivers();
# Print the name of each driver
foreach my $driver (@driver_names) {
print("Driver: $driver\n");
And thank you very much for making everything so far run so smoothly. It's been a real pleasure being able to use apache, perl, postgresql, etc., without having to be an admin. |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Sat Jul 29, 2006 7:52 am Post subject: |
|
|
| the perl DBI interface for PostgreSQL is called DBD::Pg and can be installed with PerlPPM by typing Code: install DBD-Pg |
|
| Back to top |
|
ioconnor
Joined: 01 Apr 2006
Posts: 4
|
| Posted: Sun Jul 30, 2006 4:07 pm Post subject: |
|
|
Hmmm. Ok.
Is there a ruby interface to Postgresql too? Some of my code must be in ruby and rather than read the data in Python/Perl and then ship it to Ruby I'd rather just have Ruby directly interface with the database if possible. |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Mon Jul 31, 2006 7:34 am Post subject: |
|
|
ioconnor wrote:
Is there a ruby interface to Postgresql too? Some of my code must be in ruby .................
you bet there is , the thing is that ruby is not available in apache2triad |
|
| Back to top |
|
| |