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: 94 of 162,449
Downloads: 121,686,666

Daily

Ranking: 125 of 162,430
Downloads: 79,141

Depended by

RankDownloadsName
15674,837,046database_cleaner
32137,119,433carrierwave
51328,568,374paper_trail
1,0318,909,272seed-fu
1,1127,724,685strong_migrations
1,1137,692,641groupdate
1,1227,515,122marginalia
1,2106,535,201audited
1,2945,577,349scenic
1,3255,278,200authlogic
1,4374,489,995ar-octopus
1,4774,191,124activerecord_sane_schema_dumper
1,5343,908,497active_record_union
1,5793,721,553paper_trail-association_tracking
1,6083,563,935rspec_profiling
1,6793,214,173postgres_ext
1,7363,017,552geokit-rails
1,7802,847,501distribute_reads
1,7982,799,148mail_room
1,8012,796,309squeel

Depends on

RankDownloadsName
6506,520,695rspec
13089,926,889rdoc
1,1926,735,986hoe
1,2915,643,557rake-compiler
3,284802,280rake-compiler-dock
8,273118,051hoe-bundler
15,94542,063hoe-deveiate
15,96541,964hoe-mercurial
20,58129,301hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged