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: 99 of 164,258
Downloads: 129,458,017

Daily

Ranking: 123 of 164,228
Downloads: 98,425

Depended by

RankDownloadsName
15480,078,727database_cleaner
32440,079,434carrierwave
51530,941,796paper_trail
1,01810,192,899seed-fu
1,0869,143,779marginalia
1,1198,777,147strong_migrations
1,1418,441,744groupdate
1,2167,077,702audited
1,3026,220,012scenic
1,3775,517,709authlogic
1,4744,740,780ar-octopus
1,5054,534,467rspec_profiling
1,5314,371,039active_record_union
1,5504,268,978activerecord_sane_schema_dumper
1,5914,037,677paper_trail-association_tracking
1,6433,785,714activerecord-explain-analyze
1,6993,498,367lockbox
1,7533,306,767gitlab-mail_room
1,7583,273,041postgres_ext
1,7603,269,438geokit-rails

Depends on

RankDownloadsName
7519,095,896rspec
13593,170,653rdoc
1,2197,014,788hoe
1,3315,962,481rake-compiler
3,365848,267rake-compiler-dock
8,437122,093hoe-bundler
16,25843,012hoe-deveiate
16,35142,704hoe-mercurial
21,04229,851hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged