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: 104 of 168,493
Downloads: 159,715,036

Daily

Ranking: 134 of 168,484
Downloads: 81,354

Depended by

RankDownloadsName
32251,584,380carrierwave
50640,432,769paper_trail
91916,651,016marginalia
1,00014,822,980seed-fu
1,05613,757,322strong_migrations
1,2589,683,629audited
1,3278,536,116scenic
1,3448,364,481database_cleaner-active_record
1,3678,076,569rspec_profiling
1,4027,559,525makara
1,4037,555,912activerecord-explain-analyze
1,4367,185,086gitlab-mail_room
1,4766,844,116authlogic
1,5206,398,683active_record_union
1,6195,486,710ar-octopus
1,6665,214,925paper_trail-association_tracking
1,6795,163,418redmine_crm
1,8194,401,987geokit-rails
1,8274,383,560activerecord_sane_schema_dumper
2,0323,654,368devise_token_auth

Depends on

RankDownloadsName
7566,403,191rspec
148106,093,401rdoc
1,4277,303,120hoe
1,4776,842,797rake-compiler
3,4811,062,372rake-compiler-dock
9,168132,489hoe-bundler
17,19948,327hoe-deveiate
17,57046,920hoe-mercurial
22,67532,727hoe-highline

Owners

#GravatarHandle
1iconjdavis
2iconlarskanis
3iconged