Skip to content

Instantly share code, notes, and snippets.

@mrbrdo
Created July 2, 2014 13:43
Show Gist options
  • Save mrbrdo/74eb0a3bf7496e777478 to your computer and use it in GitHub Desktop.
Save mrbrdo/74eb0a3bf7496e777478 to your computer and use it in GitHub Desktop.
$ gem list | grep sequel
sequel (4.10.0)
$ irb
jruby-1.7.12 :001 > require 'sequel'
=> true
jruby-1.7.12 :002 > Sequel.connect("jdbc:postgresql://localhost/mydb")
=> #<Sequel::JDBC::Database: "jdbc:postgresql://localhost/mydb">
jruby-1.7.12 :003 > class ContentMetric < Sequel::Model
jruby-1.7.12 :004?> end
=> nil
jruby-1.7.12 :005 > ContentMetric.new
=> #<ContentMetric @values={}>
jruby-1.7.12 :006 > ContentMetric.new.fb_shares
=> nil
firely_development=# \d+ content_metrics
fb_shares | integer | not null default 0 | plain | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment