Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DB = Sequel.postgres('my_db', :host=>'/tmp', :user=>'db_user', :password=>'secret')
- dataset = DB['select * from tbl_user']
- puts dataset.count
- /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/adapters/postgres.rb:202:in `execute': invalid connection option "opt" (Sequel::Error)
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset.rb:421:in `execute'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/adapters/postgres.rb:277:in `fetch_rows'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset.rb:198:in `each'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset/convenience.rb:180:in `single_record'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset/convenience.rb:187:in `single_value'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset/sql.rb:62:in `count'
- from /usr/local/lib/ruby/gems/1.8/gems/sequel-2.4.0/lib/sequel_core/dataset/sql.rb:62:in `count'
Add Comment
Please, Sign In to add comment