jdbc - How to get postgresql to work with sequel and jruby -


require 'sequel' require 'jdbc/postgres' db = sequel.connect("jdbc:postgresql://user:pass@domain/database") db.tables 

returns:

....(bla bla bla stack trace bla bla bla).... sequel::databaseconnectionerror: java::orgpostgresqlutil::psqlexception: connection attempt failed. ........... 

i have tried

jdbc:postgresql://domain/database?user=name&pass=word  

and got error well, different one('password requested not provided')

ruby 1.9.3 - jruby 1.7.3

i have looked , looked, tried many code samples, unable sequel working so, how sequel interface postgres while using jruby?

sequel passes jdbc connection string directly jdbc, there nothing sequel-specific it. want jdbc:postgresql://domain/database?user=name&password=secret


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -