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: 101 of 165,954
Downloads: 139,075,873

Daily

Ranking: 125 of 165,938
Downloads: 98,549

Depended by

RankDownloadsName
32243,895,100carrierwave
50434,347,766paper_trail
97112,340,372marginalia
1,00511,750,313seed-fu
1,07610,584,459strong_migrations
1,2347,746,092audited
1,2986,999,870scenic
1,4355,793,791authlogic
1,4405,748,495rspec_profiling
1,5185,075,733activerecord-explain-analyze
1,5275,015,226ar-octopus
1,5434,892,177active_record_union
1,5674,698,016gitlab-mail_room
1,6244,392,723paper_trail-association_tracking
1,6284,364,942activerecord_sane_schema_dumper
1,7193,910,720distribute_reads
1,7663,738,163database_cleaner-active_record
1,8453,607,710geokit-rails
1,9003,419,970redmine_crm
1,9213,316,272postgres_ext

Depends on

RankDownloadsName
7534,062,786rspec
14297,094,237rdoc
1,2887,112,266hoe
1,3806,225,646rake-compiler
3,395904,143rake-compiler-dock
8,625126,102hoe-bundler
16,39444,609hoe-deveiate
16,50844,148hoe-mercurial
21,10431,093hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged