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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -