From: Radek Hnilica Date: 2002-07-09T23:14:50+09:00 Subject: How to connect to sql host using dbi --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, 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 --->cut<--- #!/usr/bin/env ruby # $Id$ require 'dbi' DBI.connect('DBI:Pg:dbname=3Dtestdb;host=3Dsql', nil, nil) do |dbh| puts "selecting..." end --->cut<--- 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. --=20 Radek Hnilica =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D No matter how far down the wrong road you've gone, turn back. Turkish proverb --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9Ku/Lk1fyNKgnP8QRAm0WAKCsLTjP3esoYmnyORS5VFfyZ5kZ2wCfaTxx NxwdJnT2OEcokm74qt5pce0= =E+6q -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--