I'm new to Sequel, and I'm having trouble connecting to my Postgres
DB.

As I understand it, I can't use the ruby-pg gem because it's not JDBC-
friendly.  Some searching has pointed me to activerecord-
jdbcpostgresql-adapter gem.

Having installed that, I'm getting an odd exception that I don't
entirely understand.  Is it telling me that it can't find some Sequel
module?

(I hope this paste stays formatted okay)
692 ~/dev/jestrunner/trunk$ jirb
irb(main):001:0> require "rubygems"
require "seq=> true
irb(main):002:0> require "sequel"
=> true
irb(main):003:0> Sequel.connect('postgres://
postgres:postg...@localhost:5432/jestrunner_at_db')
NameError: uninitialized constant Sequel::Postgres::PGError
        from /opt/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems.rb:648:in
`const_missing'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
adapters/postgres.rb:89
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
adapters/postgres.rb:31:in `require'
        from /opt/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
core.rb:238:in `tsk_require'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
core.rb:83:in `check_requiring_thread'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
core.rb:80:in `check_requiring_thread'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
core.rb:238:in `tsk_require'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
database.rb:113:in `adapter_class'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
database.rb:142:in `connect'
        from /opt/jruby-1.4.0/lib/ruby/gems/1.8/gems/sequel-3.10.0/lib/sequel/
core.rb:121:in `connect'
        from (irb):4
irb(main):004:0> exit

Thanks
-Grant

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to