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: 89 of 161,144
Downloads: 115,197,051

Daily

Ranking: 125 of 161,134
Downloads: 69,058

Depended by

RankDownloadsName
15670,012,161database_cleaner
32134,403,688carrierwave
51326,440,456paper_trail
1,0687,553,468seed-fu
1,0957,133,728groupdate
1,1007,057,382strong_migrations
1,1866,003,748audited
1,1876,000,045marginalia
1,2825,098,760authlogic
1,2935,012,328scenic
1,3734,317,823ar-octopus
1,4114,136,833activerecord_sane_schema_dumper
1,5513,460,679paper_trail-association_tracking
1,5553,451,143active_record_union
1,6303,126,571postgres_ext
1,7262,794,309mail_room
1,7372,772,814geokit-rails
1,7452,744,362squeel
1,7492,715,161distribute_reads
1,8182,521,615rspec_profiling

Depends on

RankDownloadsName
6495,698,337rspec
12487,638,556rdoc
1,1346,553,469hoe
1,2455,387,301rake-compiler
3,259761,606rake-compiler-dock
8,142114,666hoe-bundler
15,67941,341hoe-mercurial
15,69341,302hoe-deveiate
20,27128,839hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged