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 158,744
Downloads: 104,084,512

Daily

Ranking: 97 of 158,722
Downloads: 92,086

Depended by

RankDownloadsName
16061,396,796database_cleaner
31530,332,021carrierwave
50923,244,789paper_trail
1,0766,283,757groupdate
1,0936,096,417seed-fu
1,1255,771,921strong_migrations
1,1845,072,967audited
1,2114,784,470authlogic
1,2674,261,591marginalia
1,2814,139,505composite_primary_keys
1,2934,037,542ar-octopus
1,2944,035,564scenic
1,2954,032,091activerecord_sane_schema_dumper
1,4683,101,604paper_trail-association_tracking
1,5392,872,231postgres_ext
1,5742,752,437mail_room
1,6202,660,549active_record_union
1,6282,633,546squeel
1,7222,380,950distribute_reads
1,7652,305,046geokit-rails

Depends on

RankDownloadsName
6477,798,444rspec
11383,865,154rdoc
1,0706,365,244hoe
1,1944,955,194rake-compiler
3,214683,086rake-compiler-dock
8,024107,041hoe-bundler
15,15640,594hoe-mercurial
15,19540,422hoe-deveiate
19,73128,239hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged