Categories: Database Drivers [Edit]

pg

https://rubygems.org/gems/pg
https://github.com/ged/ruby-pg
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]. It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/]. A small example usage: #!/usr/bin/env ruby require 'pg' # Output a table of current connections to the DB conn = PG.connect( dbname: 'sales' ) conn.exec( "SELECT * FROM pg_stat_activity" ) do |result| puts " PID | User | Query" result.each do |row| puts " %7d | %-16s | %s " % row.values_at('procpid', 'usename', 'current_query') end end

Total

Ranking: 86 of 159,773
Downloads: 108,707,241

Daily

Ranking: 127 of 159,751
Downloads: 28,298

Depended by

RankDownloadsName
15964,676,126database_cleaner
32431,721,402carrierwave
51024,576,300paper_trail
1,0796,652,215groupdate
1,1056,335,601strong_migrations
1,1086,282,659seed-fu
1,1765,428,073audited
1,2294,924,841authlogic
1,2634,599,162marginalia
1,2834,401,539scenic
1,3074,156,112ar-octopus
1,3214,081,153activerecord_sane_schema_dumper
1,5043,249,789paper_trail-association_tracking
1,5782,995,536postgres_ext
1,5852,967,309active_record_union
1,6432,787,648mail_room
1,6772,685,179squeel
1,7282,527,331distribute_reads
1,7512,465,702geokit-rails
1,8532,190,076devise_token_auth

Depends on

RankDownloadsName
6484,854,254rspec
11785,171,941rdoc
1,0936,461,172hoe
1,2115,073,663rake-compiler
3,226716,949rake-compiler-dock
8,036111,092hoe-bundler
15,39340,919hoe-mercurial
15,41940,790hoe-deveiate
19,95528,512hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged