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: 102 of 167,276
Downloads: 149,878,592

Daily

Ranking: 124 of 167,253
Downloads: 142,501

Depended by

RankDownloadsName
31848,195,713carrierwave
50537,357,653paper_trail
92914,834,687marginalia
99413,495,826seed-fu
1,07012,223,511strong_migrations
1,2448,696,131audited
1,3247,755,220scenic
1,3807,096,835rspec_profiling
1,4046,798,972makara
1,4406,502,158activerecord-explain-analyze
1,4696,294,728authlogic
1,4886,136,373gitlab-mail_room
1,4946,061,358database_cleaner-active_record
1,5295,678,696active_record_union
1,5795,282,195ar-octopus
1,6494,758,566paper_trail-association_tracking
1,6944,480,124distribute_reads
1,7174,379,540activerecord_sane_schema_dumper
1,7414,261,043redmine_crm
1,8563,969,808geokit-rails

Depends on

RankDownloadsName
7551,082,417rspec
146102,261,140rdoc
1,3707,208,738hoe
1,4376,513,229rake-compiler
3,494965,066rake-compiler-dock
8,942128,524hoe-bundler
16,76846,217hoe-deveiate
16,97845,410hoe-mercurial
21,77531,888hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged