Skip to content

Instantly share code, notes, and snippets.

@pvh
Created July 20, 2012 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvh/3151759 to your computer and use it in GitHub Desktop.
Save pvh/3151759 to your computer and use it in GitHub Desktop.
pvh$ bundle exec irb
irb(main):001:0> require 'sequel'
=> true
irb(main):002:0> DB = Sequel.connect("postgres:///")
=> #<Sequel::Postgres::Database: "postgres:///">
irb(main):003:0> DB.extension(:pg_array, :pg_row)
=> #<Sequel::Postgres::Database: "postgres:///">
irb(main):004:0> DB[:databases].select(Sequel::lit('(databases)')).all.first.values.first
=> "(foo,localhost:5432)"
irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment