From: Michael Neumann Date: 2003-02-01T19:46:04+09:00 Subject: Re: [newbie] ruby-dbi Alan Chen wrote: > that's funny, for postgres I've been using this as the connection string: > "DBI:Pg:dbname=mydatabase;host=myhost.com" > > Are these just two equivalent forms, or is the connection string DBD dependent > after the DBI:Driver: part of the string? It is DBD dependent. Well, there's a common method that parses driver URL's, but the interpretation is DBD dependent. The dbi:driver:datbase:host form applies to Mysql, msql, PostgreSQL (and without the host part to most others too). Those driver URLs where taken directly from Perl's DBI, maybe not a good idea. This works (for both Mysql and Pg): DBI:Pg:database=mydatabase;host=myhost.com Regards, Michael