I’m trying to use dbi in place of postgres to connect to my PostgreSQL
and fetch some data. The bone of script that will do this follows
DBI.connect(‘DBI:Pg:dbname=testdb;host=sql’, nil, nil) do |dbh|
but I do not know how to say to dbi that the database is not on
localhost but on host sql. Diging arround and on the net I didn’t
found any usefull help.
No matter how far down the wrong road you’ve gone, turn back.